Skip to content

Commit 9843afc

Browse files
authored
Chore: Remove Alpine image deps after using them (#25053)
1 parent 2f34e03 commit 9843afc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.docker/Dockerfile.alpine

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
FROM node:14.18.3-alpine3.15
22

3-
RUN apk add --no-cache python3 make g++ libc6-compat ttf-dejavu
3+
RUN apk add --no-cache ttf-dejavu
44

55
ADD . /app
66

77
LABEL maintainer="[email protected]"
88

99
RUN set -x \
10+
&& apk add --no-cache --virtual .fetch-deps python3 make g++ libc6-compat \
1011
&& cd /app/bundle/programs/server \
1112
&& npm install --production \
1213
# Start hack for sharp...
@@ -16,7 +17,8 @@ RUN set -x \
1617
# End hack for sharp
1718
&& cd npm \
1819
&& npm rebuild bcrypt --build-from-source \
19-
&& npm cache clear --force
20+
&& npm cache clear --force \
21+
&& apk del .fetch-deps
2022

2123
# needs a mongo instance - defaults to container linking with alias 'mongo'
2224
ENV DEPLOY_METHOD=docker \

0 commit comments

Comments
 (0)