This commit is contained in:
2025-05-12 19:31:33 +02:00
commit b47b0d31c2
5 changed files with 148 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# Basis-Image
FROM node:22-alpine
# Verzeichnis anlegen
RUN mkdir -p /app/node_modules
# Arbeitsverzeichnis im Container
WORKDIR /app
# Nur package.json und lockfile kopieren
COPY package*.json ./
# Dependencies installieren
RUN npm install
# Volume definieren, damit der Code zur Laufzeit eingebunden wird
VOLUME ["/app/volume"]
# Port freigeben
EXPOSE 8080
# Standardbefehl (z. B. Start der App über bind mount)
CMD ["node", "volume/server.js"]