From 46d4ce073dea49a0f094f3e82e6f4dead8bf42f8 Mon Sep 17 00:00:00 2001 From: David Inga Date: Tue, 5 Dec 2023 16:23:43 +0100 Subject: [PATCH] adding base path in dockerfile --- client/Dockerfile.prod | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/Dockerfile.prod b/client/Dockerfile.prod index c29ca65..754a1c8 100644 --- a/client/Dockerfile.prod +++ b/client/Dockerfile.prod @@ -6,6 +6,9 @@ RUN apt-get update -y && \ apt-get clean ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1 +ARG basePath="/impact-sphere" +RUN echo "Base path: $basePath" +ENV NEXT_PUBLIC_BASE_PATH $basePath WORKDIR /app COPY .yarn ./.yarn @@ -23,6 +26,7 @@ RUN yarn build FROM node:18.15.0-bullseye-slim AS runner ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_PUBLIC_BASE_PATH $basePath WORKDIR /app