Skip to content

Commit

Permalink
build(Docker): combine layers to reduce size
Browse files Browse the repository at this point in the history
  • Loading branch information
Scalamando committed Nov 13, 2021
1 parent 651a11e commit bf349d5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM node:16.13.0-alpine

RUN apk add --no-cache --virtual .gyp python3 make g++

WORKDIR /app

COPY package.json yarn.lock ./

RUN yarn && \
apk del .gyp
RUN apk add --no-cache --virtual .gyp python3 make g++ \
&& yarn \
&& apk del .gyp

COPY . .

Expand Down

0 comments on commit bf349d5

Please sign in to comment.