From 1ea19aff4b71e1fdf09c351e0c3806557c28ddc6 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 15 Oct 2023 04:27:37 +0100 Subject: [PATCH] my dick is wet --- .gitea/workflows/publish.yaml | 2 +- Dockerfile | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) 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