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

Commit

Permalink
Revert "fix: use relative paths for build copy steps (#4154)"
Browse files Browse the repository at this point in the history
This reverts commit dedf734.
  • Loading branch information
VWSCoronaDashboard24 committed Apr 7, 2022
1 parent 8273f4a commit 747150b
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 747150b

Please sign in to comment.