Skip to content

Commit

Permalink
refactoring: Tweaking client Dockerfile.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Dec 5, 2023
1 parent 2dc4555 commit bf5ba1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ RUN apt-get update -y && \
apt-get clean
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
ARG basePath="/impact-sphere"
ENV NEXT_PUBLIC_BASE_PATH $basePath

WORKDIR /app
COPY .yarn ./.yarn
Expand All @@ -24,9 +22,7 @@ RUN yarn build
# Copy only the built files into the final image
FROM node:18.15.0-bullseye-slim AS runner
ENV NODE_ENV production
ARG basePath="/impact-sphere"
ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_PUBLIC_BASE_PATH $basePath

WORKDIR /app

Expand All @@ -38,6 +34,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 bf5ba1a

Please sign in to comment.