Created
February 9, 2018 16:50
-
-
Save ruprict/e59159416a7acd255db59a71e29a4466 to your computer and use it in GitHub Desktop.
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.5-alpine | |
RUN apk add --update --no-cache \ | |
# build-base \ | |
nodejs \ | |
sqlite-libs \ | |
sqlite-dev \ | |
tzdata | |
RUN mkdir /blog | |
WORKDIR /blog | |
COPY blog/Gemfile blog/Gemfile.lock ./ | |
RUN apk --update add --virtual build-dependencies build-base && \ | |
gem install bundler && \ | |
bundle install --without development test && \ | |
apk del build-dependencies | |
# RUN gem install rails && bundle install | |
EXPOSE 3000 | |
CMD ["bin/rails", "server"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment