diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index ad49421..03501f8 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -52,7 +52,7 @@ jobs: - name: Save Docker Build Cache id: build-cache - uses: actions/cache/restore@v3 + uses: actions/cache/save@v3 with: path: /tmp/.buildx-caches key: ${{ runner.os }}-buildx diff --git a/Dockerfile b/Dockerfile index ed69b11..72acc72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,20 +22,14 @@ WORKDIR /app ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1 -RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs - -RUN mkdir .next -RUN chown nextjs:nodejs .next - COPY --from=builder /app/public ./public # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing -COPY --from=builder --chown=nextjs:nodejs /app/next.config.js ./ -COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ -COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static -COPY --from=builder --chown=nextjs:nodejs /app/public ./.next/static +COPY --from=builder /app/next.config.js ./ +COPY --from=builder /app/.next/standalone ./ +COPY --from=builder /app/.next/static ./.next/static +COPY --from=builder /app/public ./.next/static RUN npm i -g @beam-australia/react-env