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"]