Files
streakfit-web/Dockerfile
T
neckfireandClaude Opus 4.8 34f6ec5299
Build & Deploy / build (push) Successful in 7s
Intégration finale : auth/FilamentUser, config prod, Octane, fixes build
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 03:10:31 +02:00

18 lines
468 B
Docker

# StreakFit — front Nuxt (SPA/PWA), servi par le serveur Nitro (node).
FROM node:22-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --no-audit --no-fund
COPY . .
RUN npm run build
FROM node:22-slim AS runtime
WORKDIR /app
ENV NODE_ENV=production \
PORT=3000 \
HOST=0.0.0.0
COPY --from=build /app/.output ./.output
EXPOSE 3000
# NUXT_PUBLIC_API_BASE est injecté au runtime (voir docker-compose.yml)
CMD ["node", ".output/server/index.mjs"]