Refactoring
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Package-Dateien kopieren
|
||||
COPY package*.json ./
|
||||
|
||||
# Dependencies installieren
|
||||
RUN npm ci --only=production
|
||||
|
||||
# Anwendungsdateien kopieren
|
||||
COPY . .
|
||||
|
||||
# Ports freigeben
|
||||
EXPOSE 3333 3334
|
||||
|
||||
# Anwendung starten
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user