From 3bdad3ae1ab5f7ca224296d0a5b5a6adbdc6c20a Mon Sep 17 00:00:00 2001 From: "Hunter W." Date: Sun, 31 May 2026 10:15:38 -0400 Subject: [PATCH] fixed dockerfile for standalone next export --- Dockerfile | 3 ++- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 690780d..3d3baa5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index ae55387..d39bd53 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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