From 77e5901efe1f8193a5237c37c25ff9bc2ed226ff Mon Sep 17 00:00:00 2001 From: Six <23470032+6ixfalls@users.noreply.github.com> Date: Sun, 21 Jan 2024 14:51:20 -0800 Subject: [PATCH] Fix clientfile --- apps/client/Dockerfile | 8 +++++--- apps/workers/Dockerfile | 2 -- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/client/Dockerfile b/apps/client/Dockerfile index 58c6e00a..e0d7cdc2 100644 --- a/apps/client/Dockerfile +++ b/apps/client/Dockerfile @@ -5,8 +5,6 @@ FROM node:18-alpine3.18 as builder WORKDIR /app COPY ./dist/apps/client ./yarn.lock ./prisma ./package.json ./ -COPY ./apps/client/env.sh /env.sh -RUN chmod +x /env.sh # Install dependencies RUN yarn install --production=false @@ -15,10 +13,14 @@ RUN yarn install --production=false # ------------------------------------------ FROM node:18-alpine3.18 as prod +COPY ./apps/client/env.sh /env.sh +RUN chmod +x /env.sh + # Used for container health checks and env handling RUN apk add --no-cache curl gawk WORKDIR /app USER node COPY --from=builder --chown=node:node /app . -CMD ["/env.sh", "npx", "next", "start"] +ENTRYPOINT ["/env.sh"] +CMD ["npx", "next", "start"] diff --git a/apps/workers/Dockerfile b/apps/workers/Dockerfile index 7093977b..5b658217 100644 --- a/apps/workers/Dockerfile +++ b/apps/workers/Dockerfile @@ -1,8 +1,6 @@ # ------------------------------------------ # BUILD STAGE # ------------------------------------------ -# Full Node image must be used for node_modules install -# TODO - Upgrade to v18.x (LTS) when this issue is resolved - https://github.com/prisma/prisma/issues/10649#issuecomment-1249209025 FROM node:18-alpine3.18 as builder WORKDIR /app