Init
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Zeitzone einrichten
|
||||
RUN apk add --no-cache tzdata
|
||||
ENV TZ=Europe/Berlin
|
||||
|
||||
# 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