From 86c45612f2b91bb37e55c5eee1298ebb566bdb6c Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 1 Jun 2018 02:23:18 +0530 Subject: [PATCH] Smaller build --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 667354b..5419978 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,8 @@ FROM ruby:alpine MAINTAINER Nemo 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"]