From 8b2f3c34ef848b4a66e462b6f78c931912fb1394 Mon Sep 17 00:00:00 2001 From: wenty22 Date: Tue, 24 Dec 2024 16:57:13 +0800 Subject: [PATCH] chore: Update dockerfile --- apps/canonical-bridge-server/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/canonical-bridge-server/Dockerfile b/apps/canonical-bridge-server/Dockerfile index a86449e2..8a89b146 100644 --- a/apps/canonical-bridge-server/Dockerfile +++ b/apps/canonical-bridge-server/Dockerfile @@ -3,9 +3,6 @@ FROM node:20-buster WORKDIR /opt/deploy -RUN useradd -u 9000 appuser -USER appuser - COPY . . RUN node common/scripts/install-run-rush.js install -t canonical-bridge-server RUN node common/scripts/install-run-rush.js build -t canonical-bridge-server @@ -18,4 +15,7 @@ EXPOSE 3000 ENV NODE_ENV production +RUN useradd -u 9000 appuser +USER appuser + CMD ["yarn", "start"]