Skip to content

Commit

Permalink
adding base path in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsingal committed Dec 5, 2023
1 parent 3d12065 commit 46d4ce0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 46d4ce0

Please sign in to comment.