Add root docker-compose and webapp Dockerfile/nginx for full-stack deployment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christoph K.
2026-04-05 20:29:17 +02:00
parent 07fdd3de31
commit 4b730b1076
3 changed files with 86 additions and 0 deletions

11
webapp/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80