Last active
May 27, 2018 19:43
Star
You must be signed in to star a gist
Dockerfile with Ruby Alpine
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.4.2-alpine | |
ADD Gemfile /app/ | |
ADD Gemfile.lock /app/ | |
RUN apk add --no-cache bash gawk sed grep bc coreutils vim | |
RUN apk add --update ruby-dev build-base git \ | |
libxml2-dev libxslt-dev pcre-dev libffi-dev \ | |
postgresql-dev | |
RUN gem install bundler --no-ri --no-rdoc && \ | |
cd /app && bundle install | |
RUN apk del ruby-dev build-base | |
ADD . /app | |
RUN chown -R nobody:nogroup /app | |
USER nobody | |
ENV RACK_ENV development | |
WORKDIR /app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment