Angepass an Produtionumgebung

This commit is contained in:
2026-06-21 17:29:39 +02:00
parent 99678ae1be
commit a961a13be2
12 changed files with 349 additions and 14 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM node:20-alpine
WORKDIR /app
# Nur Produktions-Abhängigkeiten installieren
COPY package*.json ./
RUN npm ci --omit=dev
# Quellcode kopieren
COPY . .
ENV NODE_ENV=production
EXPOSE 3001
# Produktionsstart (ohne nodemon)
CMD ["npm", "start"]