From e880588d3207a843a65b9187426397542267070b Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Fri, 1 Dec 2023 11:22:43 +0100 Subject: [PATCH] fix: upgrade api docker image (#247) * fix: upgrade api docker image * fix --- api/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 0b24c498..614879ab 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,9 +1,9 @@ -FROM node:18-bullseye@sha256:f27e3f4c8b5719cb9816084475d687a283c59149f3d11a7aa45b675fea56bed0 +FROM node:lts-bullseye-slim@sha256:f959c0047e2cc2dc01459067d9e898b7780862e52f4e7e80bb674f6040298f32 ARG PRODUCTION RUN mkdir /app && chown 1000:1000 /app -USER 1000 + WORKDIR /app COPY yarn.lock .yarnrc.yml ./ @@ -18,4 +18,6 @@ ENV NODE_ENV=production RUN npx prisma generate +USER 1000 + ENTRYPOINT ["yarn", "start"]