mandant-crm/docker/frontend/Dockerfile.prod
Tim Stollberg a95fac5c0d feat(docker): add production docker-compose for Coolify deployment
Coolify builds with --project-directory set to the repo root, which broke
the dev compose file's relative paths. Adds a dedicated prod compose stack
(baked-in code, no bind mounts, no hardcoded secrets, static Nuxt build
served by nginx) so local dev and Coolify no longer share fragile path
assumptions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-18 14:59:06 +07:00

14 lines
298 B
Docker

FROM node:20-alpine AS build
WORKDIR /app
COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci
COPY frontend/ .
RUN npm run generate
FROM nginx:alpine
COPY --from=build /app/.output/public /usr/share/nginx/html
COPY docker/nginx/default.prod.conf /etc/nginx/conf.d/default.conf