Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created February 9, 2018 16:50
Show Gist options
  • Save ruprict/e59159416a7acd255db59a71e29a4466 to your computer and use it in GitHub Desktop.
Save ruprict/e59159416a7acd255db59a71e29a4466 to your computer and use it in GitHub Desktop.
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