ADD: added dockerfiles and a logger for the backend

This commit is contained in:
hwinkel
2025-12-15 13:30:41 +01:00
parent 7ec17e1e8b
commit 435ad8e6e6
12 changed files with 183 additions and 19 deletions

30
Dockerfile.frontend Normal file
View File

@@ -0,0 +1,30 @@
# =========================
# Build stage
# =========================
FROM node:20-alpine AS builder
WORKDIR /app
COPY frontend/studia/package*.json ./
RUN npm ci
COPY frontend/studia/ ./
RUN npm run build
# =========================
# Runtime stage
# =========================
FROM nginx:1.27-alpine
# Remove default nginx config
RUN rm /etc/nginx/conf.d/default.conf
# Custom nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Vite build output
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]