Created
August 26, 2016 00:46
-
-
Save lopezjurip/7511d81f4832adeee3b66277d5a6b618 to your computer and use it in GitHub Desktop.
This file contains 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.3 | |
# Install dependencies | |
RUN apt-get update -qq | |
RUN apt-get install -y build-essential libpq-dev nodejs | |
# Prepare app | |
RUN mkdir /app | |
WORKDIR /app | |
COPY Gemfile /app/Gemfile | |
COPY Gemfile.lock /app/Gemfile.lock | |
RUN bundle install | |
COPY . /app | |
# Expose and setup start command | |
EXPOSE 3000 | |
CMD ["rails", "server", "-b", "0.0.0.0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment