From 470233e09fdf4ca3389c500cc5d732ec155b89a1 Mon Sep 17 00:00:00 2001 From: Ludovic Muller Date: Tue, 23 Apr 2024 14:24:21 +0200 Subject: [PATCH] test/docker: upgrade to node 20 --- test/app/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/app/Dockerfile b/test/app/Dockerfile index d552727..75735d2 100644 --- a/test/app/Dockerfile +++ b/test/app/Dockerfile @@ -1,24 +1,24 @@ -FROM docker.io/library/node:16-alpine +FROM docker.io/library/node:20-alpine WORKDIR /app -# install tini to handle signals +# Install tini to handle signals RUN apk add --no-cache tini -# configure server listening +# Configure server listening ENV SERVER_PORT="8080" ENV SERVER_HOST="::" -# build the app +# Build the app COPY package.json package-lock.json ./ RUN npm ci COPY . . RUN npm run build -# app is exposed on the specified port +# App is exposed on the specified port EXPOSE "${SERVER_PORT}" -# run as "nobody", a non-root user -USER 65534:65534 +# Run as a non-root user +USER 1000:1000 CMD [ "tini", "--", "node", "dist/index.js" ]