dockerfile, fixes, organization edit page

This commit is contained in:
2026-04-08 11:58:30 +02:00
parent 8eb59cda2b
commit 5ef0059187
5 changed files with 278 additions and 2 deletions

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
# 1. Build-Stage
FROM node:18-alpine AS build
WORKDIR /app
# package files kopieren
COPY package*.json ./
# dependencies installieren
RUN npm install
# restlichen Code kopieren
COPY . .
# React App bauen
RUN npm run build
# 2. Serve-Stage (Nginx)
FROM nginx:alpine
# build output in nginx kopieren
COPY --from=build /app/build /usr/share/nginx/html
# optional: eigene nginx config
# COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 5173
CMD ["nginx", "-g", "daemon off;"]