From 3c36ee63df93dfd8e98ced1905aecdd5065be834 Mon Sep 17 00:00:00 2001 From: martintomas Date: Wed, 6 Dec 2023 14:26:11 +0100 Subject: [PATCH] fix: Client docker build during deployment V. --- client/Dockerfile.prod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/Dockerfile.prod b/client/Dockerfile.prod index 655bc28..cd21080 100644 --- a/client/Dockerfile.prod +++ b/client/Dockerfile.prod @@ -20,11 +20,11 @@ COPY package.json .yarnrc.yml yarn.lock .prettierrc.js ./ WORKDIR /app/client COPY ./client/package.json ./ -RUN NEXT_PUBLIC_BASE_PATH=/impact-sphere yarn install +RUN yarn install COPY ./client . -RUN NEXT_PUBLIC_BASE_PATH=/impact-sphere yarn build +RUN yarn build # Copy only the built files into the final image FROM node:18.15.0-bullseye-slim AS runner @@ -58,6 +58,7 @@ COPY --from=build --chown=nextjs:nodejs /app/client/entrypoint.sh ./entrypoint.s COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/client/public ./public COPY --from=build /app/client/package.json ./package.json +COPY --from=build /app/client/.env.local ./.env.local USER nextjs