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