fix: deployment

This commit is contained in:
Dominik Natter
2025-03-31 13:53:58 +02:00
parent 9663317a4e
commit 7e3ed5b8b5
3 changed files with 14 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
# To use this Dockerfile, you have to set `output: 'standalone'` in your next.config.mjs file.
# Dockerfile
# From https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile
FROM node:22.12.0-alpine AS base
FROM node:18-alpine AS base
# Install dependencies only when needed
FROM base AS deps
@@ -48,7 +48,6 @@ ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
# Remove this line if you do not have this folder
COPY --from=builder /app/public ./public
# Set the correct permission for prerender cache