First commit
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Multi-stage build: Leichtgewichtiger Container
|
||||
FROM node:18-alpine
|
||||
|
||||
# Setze Arbeitsverzeichnis
|
||||
WORKDIR /app
|
||||
|
||||
# Installiere Dependencies
|
||||
COPY package.json .
|
||||
RUN npm install --production
|
||||
|
||||
# Kopiere die Anwendung
|
||||
COPY server.js .
|
||||
COPY static/ static/
|
||||
COPY views/ views/
|
||||
|
||||
# Exponiere Port
|
||||
EXPOSE 5003
|
||||
|
||||
# Starten Sie die Anwendung
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user