Added Running Config

This commit is contained in:
2025-09-12 18:38:13 +02:00
parent c98394b5bf
commit fc46e807e7
7 changed files with 5425 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# Basis-Image mit Node.js
FROM node:20-alpine
# Arbeitsverzeichnis im Container
WORKDIR /usr/src/app
# package.json und package-lock.json zuerst kopieren
COPY package*.json ./
# Dependencies installieren (nur Produktion, falls nötig)
RUN npm install --omit=dev
# Restlichen Quellcode kopieren
COPY . .
# Port setzen (Fastify läuft standardmäßig auf 3000)
EXPOSE 3000
# Startkommando
CMD ["npm", "start"]