Skip to content

Instantly share code, notes, and snippets.

@kolo
Created February 23, 2017 21:09
Show Gist options
  • Save kolo/73f419dc2cbbe2326ee8a428883ccfb4 to your computer and use it in GitHub Desktop.
Save kolo/73f419dc2cbbe2326ee8a428883ccfb4 to your computer and use it in GitHub Desktop.
ruby:2.4-alpine + rails 5.0.1
FROM ruby:2.4-alpine
RUN apk --update add --virtual\
build-dependencies build-base libev libev-dev postgresql-dev nodejs bash tzdata
ADD ./.gemrc /tmp
ADD ./Gemfile /tmp
ADD ./Gemfile.lock /tmp
WORKDIR /tmp
RUN bundle install --no-cache
ADD . /usr/src/loltime
RUN chown -R nobody:nogroup /usr/src/loltime
WORKDIR /usr/src/loltime
EXPOSE 3000
CMD bin/rails s -b 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment