Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: use relative paths for build copy steps (#4154)
Browse files Browse the repository at this point in the history
Co-authored-by: VWSCoronaDashboard24 <[email protected]>
  • Loading branch information
1 parent 1f844fe commit dedf734
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ RUN apk add --no-cache \
RUN addgroup -g 1001 -S nodejs \
&& adduser -S nextjs -u 1001

COPY --from=builder --chown=nextjs:nodejs /app/packages/app/.next/standalone /app/.next/standalone
COPY --from=builder --chown=nextjs:nodejs /app/packages/app/.next/static /app/.next/standalone/packages/app/.next/static
COPY --from=builder /app/packages/app/next.config.js /app/.next/standalone/packages/app
COPY --from=builder --chown=nextjs:nodejs app/packages/app/.next/standalone app/.next/standalone
COPY --from=builder --chown=nextjs:nodejs app/packages/app/.next/static app/.next/standalone/packages/app/.next/static
COPY --from=builder app/packages/app/next.config.js app/.next/standalone/packages/app

RUN mkdir -p /app/.next/standalone/packages/app/public/images/choropleth
RUN chown -R nextjs:nodejs /app/.next/standalone/packages/app/public/images/choropleth
RUN mkdir -p app/.next/standalone/packages/app/public/images/choropleth
RUN chown -R nextjs:nodejs app/.next/standalone/packages/app/public/images/choropleth

WORKDIR /app/.next/standalone/packages/app
WORKDIR app/.next/standalone/packages/app

USER nextjs

Expand Down

0 comments on commit dedf734

Please sign in to comment.