From 7e1d4453cfb4543223f1e3b0ce64d73b73e223cb Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Fri, 1 Dec 2023 10:56:52 +0100 Subject: [PATCH 1/2] fix: upgrade api docker image --- api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 0b24c498..421e572c 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-bullseye@sha256:f27e3f4c8b5719cb9816084475d687a283c59149f3d11a7aa45b675fea56bed0 +FROM node:20-bullseye@sha256:16a459d48168e18e3c1cc63c7bf53f248c50ca8391d6345b4c4d0e62fc9b201f ARG PRODUCTION From 5c035f258e47469df0b9b48e939975e627fc4d7a Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Fri, 1 Dec 2023 11:15:49 +0100 Subject: [PATCH 2/2] fix --- api/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 421e572c..614879ab 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,9 +1,9 @@ -FROM node:20-bullseye@sha256:16a459d48168e18e3c1cc63c7bf53f248c50ca8391d6345b4c4d0e62fc9b201f +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"]