Last active
March 12, 2020 03:12
-
-
Save nhu313/7c284e01faacd6b547e228437be4ae74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.6.5-stretch as base | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
build-essential \ | |
g++ \ | |
libpq-dev \ | |
qt4-dev-tools \ | |
libqt4-dev \ | |
nodejs | |
RUN mkdir -p /var/app | |
WORKDIR /var/app | |
COPY Gemfile Gemfile.lock ./ | |
RUN bundle install | |
# Do I need this? I don't see base being used anywhere | |
FROM base as release | |
COPY . ./ | |
EXPOSE 80 | |
ENTRYPOINT bundle exec rails s -p 80 -b 0.0.0.0 |
Author
nhu313
commented
Mar 12, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment