Kommentare hinzugefügt

This commit is contained in:
2024-06-25 08:40:38 +02:00
parent 1badda8a7e
commit ba55315090
3 changed files with 18 additions and 3 deletions

View File

@@ -1,13 +1,18 @@
# Benutze das offizielle Node.js-Image als Basis
FROM node:alpine
# Setze das Arbeitsverzeichnis im Container
WORKDIR /usr/src/app
# Kopiere die Dateien in das Arbeitsverzeichnis
COPY package*.json ./
RUN npm install
COPY ./src .
# Installiere die Abhängigkeiten
RUN npm install
# Öffne den Port 3000
EXPOSE 3000
# Starte die Anwendung
CMD ["node", "server.js"]