Dockerfile aktualisiert
Deploy TrassenPlaner / deploy (push) Failing after 5s Details

This commit is contained in:
gitea-enwelo-jba 2026-04-28 10:29:11 +00:00
parent 6e6545130d
commit 5682c076c1
1 changed files with 10 additions and 7 deletions

View File

@ -1,10 +1,13 @@
FROM nginx:alpine FROM node:20-alpine
WORKDIR /app
# Entferne die Standard NGINX HTML Seite # Abhängigkeiten kopieren und installieren
RUN rm -rf /usr/share/nginx/html/* COPY package*.json ./
RUN npm install --production
# Kopiere alle statischen Projektdateien in das NGINX HTML-Verzeichnis # Den restlichen Code (inkl. server.js und Frontend-Dateien) kopieren
COPY . /usr/share/nginx/html/ COPY . .
# Expose Port 80 # Der Server läuft auf Port 3000
EXPOSE 80 EXPOSE 3000
CMD ["node", "server.js"]