From 747150b195c4c03e664e572cda2c796a89059804 Mon Sep 17 00:00:00 2001 From: VWSCoronaDashboard24 Date: Thu, 7 Apr 2022 09:25:52 +0200 Subject: [PATCH] Revert "fix: use relative paths for build copy steps (#4154)" This reverts commit dedf734bbcc5043f8dbb9955ced57657f1e4b6f4. --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index c528a3ec51..5b315bb111 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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