Skip to content

Instantly share code, notes, and snippets.

@lopezjurip
Created August 26, 2016 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lopezjurip/7511d81f4832adeee3b66277d5a6b618 to your computer and use it in GitHub Desktop.
Save lopezjurip/7511d81f4832adeee3b66277d5a6b618 to your computer and use it in GitHub Desktop.
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