From 5ca2ee2e9c9a7084b0f3aff4341b206836ea5667 Mon Sep 17 00:00:00 2001 From: martintomas Date: Wed, 6 Dec 2023 14:16:21 +0100 Subject: [PATCH] fix: Client docker build during deployment IV. --- client/Dockerfile.prod | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/client/Dockerfile.prod b/client/Dockerfile.prod index 13e08fd..655bc28 100644 --- a/client/Dockerfile.prod +++ b/client/Dockerfile.prod @@ -14,28 +14,17 @@ ARG NEXT_PUBLIC_MAPBOX_API_TOKEN ARG LOG_LEVEL ARG RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED -ENV NODE_ENV production -ENV NEXT_TELEMETRY_DISABLED 1 -ENV NEXT_PUBLIC_URL=$NEXT_PUBLIC_URL -ENV NEXT_PUBLIC_BASE_PATH=$NEXT_PUBLIC_BASE_PATH -ENV NEXT_PUBLIC_ENVIRONMENT=$NEXT_PUBLIC_ENVIRONMENT -ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL -ENV NEXT_PUBLIC_GA_TRACKING_ID=$NEXT_PUBLIC_GA_TRACKING_ID -ENV NEXT_PUBLIC_MAPBOX_API_TOKEN=$NEXT_PUBLIC_MAPBOX_API_TOKEN -ENV LOG_LEVEL=$LOG_LEVEL -ENV RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=$RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED - WORKDIR /app COPY .yarn ./.yarn COPY package.json .yarnrc.yml yarn.lock .prettierrc.js ./ WORKDIR /app/client COPY ./client/package.json ./ -RUN yarn install +RUN NEXT_PUBLIC_BASE_PATH=/impact-sphere yarn install COPY ./client . -RUN yarn build +RUN NEXT_PUBLIC_BASE_PATH=/impact-sphere yarn build # Copy only the built files into the final image FROM node:18.15.0-bullseye-slim AS runner