change port docker to 3010

This commit is contained in:
corenthin-lebreton 2026-02-26 22:41:14 +01:00
parent 92e7707b2a
commit 3bc6e7b002

View File

@ -24,10 +24,6 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# Les NEXT_PUBLIC_* sont baked dans le bundle client.
# → Définir dans Dokploy : Project > Build Variables
# → Les placeholders ci-dessous empêchent le SDK Supabase de lever une
# erreur de validation URL si les build-args ne sont pas fournis.
ARG NEXT_PUBLIC_SUPABASE_URL=https://placeholder.supabase.co
ARG NEXT_PUBLIC_SUPABASE_ANON_KEY=placeholder-anon-key-for-build-only
@ -37,7 +33,6 @@ ENV NEXT_PUBLIC_SUPABASE_URL=$NEXT_PUBLIC_SUPABASE_URL \
NODE_ENV=production \
NODE_OPTIONS="--max-old-space-size=2048"
# S'assurer que public/ existe même si absent du repo
RUN mkdir -p public
RUN echo "→ NEXT_PUBLIC_SUPABASE_URL = $NEXT_PUBLIC_SUPABASE_URL" && \
@ -64,10 +59,10 @@ USER nextjs
ENV NODE_ENV=production \
NEXT_TELEMETRY_DISABLED=1 \
PORT=3000 \
PORT=3010 \
HOSTNAME="0.0.0.0"
EXPOSE 3000
EXPOSE 3010
HEALTHCHECK --interval=30s --timeout=10s --start-period=20s --retries=3 \
CMD wget -qO- http://localhost:3000/ | grep -q "html" || exit 1