Skip to content

Commit 80307d9

Browse files
authored
updated dockefile with depends (#400)
1 parent 9d5a7b1 commit 80307d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ FROM base AS prod-dependencies
5252
WORKDIR /app
5353

5454
# Build the project
55-
RUN yarn build && \
55+
RUN apk --no-cache --virtual build-dependencies add g++ make py3-pip && \
56+
yarn build && \
5657
yarn copy-files && \
5758
rm -rf node_modules && \
58-
yarn install --production=true --frozen-lockfile --network-timeout 1000000
59+
yarn install --production=true --frozen-lockfile --network-timeout 1000000 && \
60+
apk del build-dependencies
5961

6062
##############################
6163
##############################

0 commit comments

Comments
 (0)