Created
May 4, 2017 08:58
-
-
Save scan/d05837bcf8aff62f6c029e927dce19ca to your computer and use it in GitHub Desktop.
Dockerfile for alpine based rails app
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.4.1-alpine | |
RUN apk --update --upgrade add build-base nodejs libxml2-dev libxslt-dev tzdata | |
RUN mkdir /app | |
WORKDIR /app | |
ADD Gemfile /app/Gemfile | |
ADD Gemfile.lock /app/Gemfile.lock | |
RUN bundle config --global build.nokogiri "--use-system-libraries" && bundle install --jobs 4 | |
ADD . /app | |
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