Skip to content

Instantly share code, notes, and snippets.

@nickwu241
Last active August 16, 2018 12:39
Show Gist options
  • Save nickwu241/3328e47b44270fe2abd9881097b2fe8b to your computer and use it in GitHub Desktop.
Save nickwu241/3328e47b44270fe2abd9881097b2fe8b to your computer and use it in GitHub Desktop.
FROM ruby:2.5
WORKDIR /app
RUN apt-get update && apt-get install -y build-essential nodejs
COPY Gemfile Gemfile.lock ./
RUN gem install bundler && bundle install
COPY . ./
EXPOSE 3000
CMD ["bundle", "exec", "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