Skip to content

Commit

Permalink
less layers `
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Dec 23, 2024
1 parent e6f635e commit 83d4059
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions apps/meteor/.docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ ENV LANG=C.UTF-8
# The daemon user is also handy for locally installed daemons.
# """
RUN apk add --no-cache deno ttf-dejavu \
&& apk add --no-cache --virtual .usermod shadow \
&& apk add --no-cache --virtual deps shadow python3 make g++ py3-setuptools libc6-compat \
&& groupmod -n rocketchat nogroup \
&& useradd -u 65533 -r -g rocketchat rocketchat \
&& apk del .usermod
&& useradd -u 65533 -r -g rocketchat rocketchat

COPY --chown=rocketchat:rocketchat . /app

Expand All @@ -33,14 +32,12 @@ ENV DEPLOY_METHOD=docker \
ROOT_URL=http://localhost:3000 \
Accounts_AvatarStorePath=/app/uploads

RUN set -x \
&& apk add --no-cache --virtual .fetch-deps python3 make g++ py3-setuptools libc6-compat

USER rocketchat

RUN cd /app/bundle/programs/server \
&& npm install --omit=dev \
&& cd /app/bundle/programs/server && rm -rf npm/node_modules/sharp \
&& cd /app/bundle/programs/server \
&& rm -rf npm/node_modules/sharp \
&& npm install [email protected] --no-save \
&& mv node_modules/sharp npm/node_modules/sharp \
# End hack for sharp
Expand All @@ -57,7 +54,7 @@ RUN cd /app/bundle/programs/server \

USER root

RUN apk del .fetch-deps
RUN apk del deps

USER rocketchat

Expand Down

0 comments on commit 83d4059

Please sign in to comment.