Skip to content

Commit

Permalink
Chore: Remove Alpine image deps after using them (#25053)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Apr 5, 2022
1 parent 2f34e03 commit 9843afc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM node:14.18.3-alpine3.15

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

ADD . /app

LABEL maintainer="buildmaster@rocket.chat"

RUN set -x \
&& apk add --no-cache --virtual .fetch-deps python3 make g++ libc6-compat \
&& cd /app/bundle/programs/server \
&& npm install --production \
# Start hack for sharp...
Expand All @@ -16,7 +17,8 @@ RUN set -x \
# End hack for sharp
&& cd npm \
&& npm rebuild bcrypt --build-from-source \
&& npm cache clear --force
&& npm cache clear --force \
&& apk del .fetch-deps

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

0 comments on commit 9843afc

Please sign in to comment.