From 6292926166431f9483677f7b53611c40d3185856 Mon Sep 17 00:00:00 2001 From: Debdut Chakraborty Date: Mon, 23 Dec 2024 13:04:52 +0530 Subject: [PATCH] rest of the images --- ee/apps/account-service/Dockerfile | 10 +++++++++- ee/apps/authorization-service/Dockerfile | 11 ++++++++++- ee/apps/ddp-streamer/Dockerfile | 11 ++++++++++- ee/apps/omnichannel-transcript/Dockerfile | 11 ++++++++++- ee/apps/presence-service/Dockerfile | 11 ++++++++++- ee/apps/queue-worker/Dockerfile | 11 ++++++++++- ee/apps/stream-hub-service/Dockerfile | 11 ++++++++++- 7 files changed, 69 insertions(+), 7 deletions(-) diff --git a/ee/apps/account-service/Dockerfile b/ee/apps/account-service/Dockerfile index 272a781ce5b0..dff63d535eda 100644 --- a/ee/apps/account-service/Dockerfile +++ b/ee/apps/account-service/Dockerfile @@ -75,7 +75,15 @@ RUN apk update && \ apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \ yarn workspaces focus --production && \ rm -rf /var/cache/apk/* && \ - apk del build-dependencies + apk add --no-cache --virtual .usermod shadow && \ + groupmod -n rocketchat nogroup && \ + useradd -u 65533 -r -g rocketchat rocketchat && \ + apk del .usermod && \ + apk del build-dependencies && \ + cd /app && \ + chown -R rocketchat:rocketchat * + +USER rocketchat EXPOSE 3000 9458 diff --git a/ee/apps/authorization-service/Dockerfile b/ee/apps/authorization-service/Dockerfile index de7b41913a20..8c493178249c 100644 --- a/ee/apps/authorization-service/Dockerfile +++ b/ee/apps/authorization-service/Dockerfile @@ -72,7 +72,16 @@ RUN apk update && \ apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \ yarn workspaces focus --production && \ rm -rf /var/cache/apk/* && \ - apk del build-dependencies + apk del build-dependencies && \ + apk add --no-cache --virtual .usermod shadow && \ + groupmod -n rocketchat nogroup && \ + useradd -u 65533 -r -g rocketchat rocketchat && \ + apk del .usermod && \ + apk del build-dependencies && \ + cd /app && \ + chown -R rocketchat:rocketchat * + +USER rocketchat EXPOSE 3000 9458 diff --git a/ee/apps/ddp-streamer/Dockerfile b/ee/apps/ddp-streamer/Dockerfile index e0ff3620e17d..44694e93aaf7 100644 --- a/ee/apps/ddp-streamer/Dockerfile +++ b/ee/apps/ddp-streamer/Dockerfile @@ -78,7 +78,16 @@ RUN apk update && \ apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \ yarn workspaces focus --production && \ rm -rf /var/cache/apk/* && \ - apk del build-dependencies + apk del build-dependencies && \ + apk add --no-cache --virtual .usermod shadow && \ + groupmod -n rocketchat nogroup && \ + useradd -u 65533 -r -g rocketchat rocketchat && \ + apk del .usermod && \ + apk del build-dependencies && \ + cd /app && \ + chown -R rocketchat:rocketchat * + +USER rocketchat EXPOSE 3000 9458 diff --git a/ee/apps/omnichannel-transcript/Dockerfile b/ee/apps/omnichannel-transcript/Dockerfile index daf27317e554..24f499798667 100644 --- a/ee/apps/omnichannel-transcript/Dockerfile +++ b/ee/apps/omnichannel-transcript/Dockerfile @@ -81,7 +81,16 @@ RUN apk update && \ apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \ yarn workspaces focus --production && \ rm -rf /var/cache/apk/* && \ - apk del build-dependencies + apk del build-dependencies && \ + apk add --no-cache --virtual .usermod shadow && \ + groupmod -n rocketchat nogroup && \ + useradd -u 65533 -r -g rocketchat rocketchat && \ + apk del .usermod && \ + apk del build-dependencies && \ + cd /app && \ + chown -R rocketchat:rocketchat * + +USER rocketchat EXPOSE 3000 9458 diff --git a/ee/apps/presence-service/Dockerfile b/ee/apps/presence-service/Dockerfile index cf7bc5577700..1ef3a3d20844 100644 --- a/ee/apps/presence-service/Dockerfile +++ b/ee/apps/presence-service/Dockerfile @@ -75,7 +75,16 @@ RUN apk update && \ apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \ yarn workspaces focus --production && \ rm -rf /var/cache/apk/* && \ - apk del build-dependencies + apk del build-dependencies && \ + apk add --no-cache --virtual .usermod shadow && \ + groupmod -n rocketchat nogroup && \ + useradd -u 65533 -r -g rocketchat rocketchat && \ + apk del .usermod && \ + apk del build-dependencies && \ + cd /app && \ + chown -R rocketchat:rocketchat * + +USER rocketchat EXPOSE 3000 9458 diff --git a/ee/apps/queue-worker/Dockerfile b/ee/apps/queue-worker/Dockerfile index daf27317e554..24f499798667 100644 --- a/ee/apps/queue-worker/Dockerfile +++ b/ee/apps/queue-worker/Dockerfile @@ -81,7 +81,16 @@ RUN apk update && \ apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \ yarn workspaces focus --production && \ rm -rf /var/cache/apk/* && \ - apk del build-dependencies + apk del build-dependencies && \ + apk add --no-cache --virtual .usermod shadow && \ + groupmod -n rocketchat nogroup && \ + useradd -u 65533 -r -g rocketchat rocketchat && \ + apk del .usermod && \ + apk del build-dependencies && \ + cd /app && \ + chown -R rocketchat:rocketchat * + +USER rocketchat EXPOSE 3000 9458 diff --git a/ee/apps/stream-hub-service/Dockerfile b/ee/apps/stream-hub-service/Dockerfile index de7b41913a20..8c493178249c 100644 --- a/ee/apps/stream-hub-service/Dockerfile +++ b/ee/apps/stream-hub-service/Dockerfile @@ -72,7 +72,16 @@ RUN apk update && \ apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \ yarn workspaces focus --production && \ rm -rf /var/cache/apk/* && \ - apk del build-dependencies + apk del build-dependencies && \ + apk add --no-cache --virtual .usermod shadow && \ + groupmod -n rocketchat nogroup && \ + useradd -u 65533 -r -g rocketchat rocketchat && \ + apk del .usermod && \ + apk del build-dependencies && \ + cd /app && \ + chown -R rocketchat:rocketchat * + +USER rocketchat EXPOSE 3000 9458