kann deployed werde (zum ersten Mal)
This commit is contained in:
21
Dockerfile_esp2sensor
Normal file
21
Dockerfile_esp2sensor
Normal file
@@ -0,0 +1,21 @@
|
||||
# Node.js 20 LTS als Basis
|
||||
FROM node:20-alpine
|
||||
|
||||
# Arbeitsverzeichnis
|
||||
WORKDIR /app
|
||||
|
||||
# package.json + package-lock.json kopieren
|
||||
COPY package*.json ./
|
||||
|
||||
# Dependencies installieren
|
||||
RUN npm install
|
||||
|
||||
# Restliche App-Dateien kopieren
|
||||
COPY . .
|
||||
|
||||
# Port in Container
|
||||
EXPOSE 3000
|
||||
|
||||
# Startkommando
|
||||
# CMD ["npm", "run", "dev"]
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user