Initial commit: Projektübersicht - Docker GANT
This commit is contained in:
commit
004003cd17
670 files changed
+76973
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# package.json und package-lock.json zuerst kopieren, damit npm-Installation gecacht wird
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --production
|
||||
|
||||
# Nur die Laufzeit-Dateien kopieren
|
||||
COPY server.js ./
|
||||
COPY public ./public
|
||||
|
||||
# Sessions-Ordner fuer die CSV-Daten sicherstellen
|
||||
RUN mkdir -p /app/sessions && chown -R node:node /app
|
||||
|
||||
USER node
|
||||
|
||||
EXPOSE 3003
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
CMD node -e "require('http').get('http://localhost:3003/health', r => r.statusCode === 200 ? process.exit(0) : process.exit(1)).on('error', () => process.exit(1))"
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
Reference in new issue
Block a user