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>
14 lines
298 B
Docker
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
|