Smaller build

This commit is contained in:
Nemo 2018-06-01 02:23:18 +05:30
parent fa53580d0c
commit 86c45612f2
1 changed files with 1 additions and 3 deletions

View File

@ -2,10 +2,8 @@ FROM ruby:alpine
MAINTAINER Nemo <opml.docker@captnemo.in>
WORKDIR /app
COPY Gemfile Gemfile.lock /app/
RUN apk add --no-cache build-base
RUN bundle install
RUN apk add --no-cache build-base && bundle install && apk del build-base
COPY . /app
ENTRYPOINT ["/usr/local/bin/bundle", "exec", "rackup", "-E", "production", "-p", "80"]