-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
@@ -57,7 +54,7 @@ RUN cd /app/bundle/programs/server \ | |
|
||
USER root | ||
|
||
RUN apk del .fetch-deps | ||
RUN apk del deps | ||
|
||
USER rocketchat | ||
|
||
|