Dateien nach "/" hochladen

This commit is contained in:
2025-08-08 19:52:56 +02:00
parent c5134c0ecc
commit c0336a7920
5 changed files with 76 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# Stage 1 — build the Vite app with Tailwind
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci --prefer-offline --no-audit --no-fund
COPY . .
RUN npm run build
# Stage 2 — serve with nginx
FROM nginx:stable-alpine AS runtime
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]