my dick is wet
All checks were successful
Publish / docker (push) Successful in 1m59s

This commit is contained in:
Lee 2023-10-15 04:27:37 +01:00
parent a34de0aa93
commit 1ea19aff4b
2 changed files with 5 additions and 11 deletions

@ -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

@ -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