This commit is contained in:
parent
a34de0aa93
commit
1ea19aff4b
@ -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
|
||||
|
14
Dockerfile
14
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
|
||||
|
||||
|
Reference in New Issue
Block a user