Skip to content

Commit

Permalink
fix: Client docker build during deployment V.
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Dec 6, 2023
1 parent 5ca2ee2 commit 3c36ee6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 3c36ee6

Please sign in to comment.