diff options
Diffstat (limited to 'vnext/server/Dockerfile')
-rw-r--r-- | vnext/server/Dockerfile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/vnext/server/Dockerfile b/vnext/server/Dockerfile index 37f8c896..52537cd4 100644 --- a/vnext/server/Dockerfile +++ b/vnext/server/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.17.0-bookworm-slim +FROM node:23.1.0-bookworm-slim # Install app dependencies COPY package.json . @@ -8,11 +8,12 @@ RUN npm install # Bundle APP files COPY public/server.js . -ENV NODE_ENV production -ENV NPM_CONFIG_LOGLEVEL warn -ENV DEBUG http +ENV NODE_ENV=production +ENV NPM_CONFIG_LOGLEVEL=warn +ENV DEBUG=http -# Expose the listening port of your app -EXPOSE 8081 +RUN useradd juick +USER juick -CMD [ "node", "server.js" ] +EXPOSE 8081 +CMD ["node", "server.js"] |