fixed dockerfile for standalone next export

This commit is contained in:
Hunter W.
2026-05-31 10:15:38 -04:00
parent 28a672c82b
commit 3bdad3ae1a
2 changed files with 3 additions and 2 deletions

View File

@@ -24,9 +24,10 @@ ENV PORT=3050
RUN addgroup --system --gid 1001 app && \
adduser --system --uid 1001 app
COPY --from=build /app/public ./public
COPY --from=build --chown=app:app /app/public ./.next/standalone
COPY --from=build --chown=app:app /app/.next/standalone ./
COPY --from=build --chown=app:app /app/.next/static ./.next/static
COPY --from=build --chown=app:app /app/next.config.ts ./
USER app
EXPOSE 3050

View File

@@ -11,7 +11,7 @@ services:
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3050"]
interval: 30s
interval: 60s
timeout: 5s
retries: 3
start_period: 10s