Browse Source

Smaller build

master
Nemo 3 years ago
parent
commit
86c45612f2
  1. 4
      Dockerfile

4
Dockerfile

@ -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"]
Loading…
Cancel
Save