Skip to content

Commit

Permalink
Merge pull request #95 from sergiitk/cleanup/docker-image-size
Browse files Browse the repository at this point in the history
[CLEANUP docker] Reduce docker image size by cleaning yarn cache
  • Loading branch information
sergiitk authored Mar 10, 2019
2 parents 5eacded + a8f7d8f commit 3f4e6da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ WORKDIR $APP_DIR

# Install
COPY package.json yarn.lock $APP_DIR/
RUN yarn install --prod --frozen-lockfile
RUN yarn install --prod --frozen-lockfile \
&& yarn cache clean

# Pagerbeauty default port
EXPOSE 8080
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ WORKDIR $APP_DIR

# Install
COPY package.json yarn.lock $APP_DIR/
RUN yarn install --prod --frozen-lockfile
RUN yarn install --prod --frozen-lockfile \
&& yarn cache clean

# Pagerbeauty default port
EXPOSE 8080
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-test-acceptance
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ WORKDIR $APP_DIR

# Install
COPY package.json yarn.lock $APP_DIR/
RUN yarn install --prod --frozen-lockfile
RUN yarn install --prod --frozen-lockfile \
&& yarn cache clean

# Pagerbeauty default port
EXPOSE 8080
Expand Down

0 comments on commit 3f4e6da

Please sign in to comment.