Add console + marketing site to Docker Compose and build-push

- Console: nginx SPA on port 3010, image reg.dd0c.net/dd0c-console
- Marketing: nginx static on port 3011, image reg.dd0c.net/dd0c-marketing
- Dockerfiles + .dockerignore for both
- build-push.sh updated to include console + marketing targets
This commit is contained in:
2026-03-03 00:36:48 +00:00
parent 5792f95d7c
commit 5a1e287ab6
5 changed files with 39 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
node_modules/
dist/
.env

View File

@@ -0,0 +1,11 @@
FROM node:22-slim AS build
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]