21 lines
333 B
Docker
21 lines
333 B
Docker
|
# Node.js Image
|
||
|
FROM node:latest
|
||
|
|
||
|
# Arbeitsverzeichnis erstellen und setzen
|
||
|
WORKDIR /app
|
||
|
|
||
|
# Kopiere package.json und package-lock.json
|
||
|
COPY package*.json ./
|
||
|
|
||
|
# Installiere Abhängigkeiten
|
||
|
RUN npm install
|
||
|
|
||
|
# Kopiere den restlichen Server-Code
|
||
|
COPY . .
|
||
|
|
||
|
# Exponiere den Port des Servers
|
||
|
EXPOSE 5000
|
||
|
|
||
|
# Startbefehl
|
||
|
CMD ["npm", "start"]
|