added .\dockerfile[deploy]
Some checks failed
Deploy Discord Bot / deploy (push) Failing after 40s

This commit is contained in:
Pascal Prießnitz
2025-12-03 01:41:52 +01:00
parent a21f349c00
commit 352217a17b
2 changed files with 32 additions and 5 deletions

21
dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# Nutze Node 18 wie bisher
FROM node:18-alpine
# Arbeitsverzeichnis
WORKDIR /usr/src/app
# package.json und lockfile zuerst kopieren (für besseres Caching)
COPY package*.json ./
# Dependencies installieren (für Prod ggf. ohne devDependencies)
RUN npm ci --omit=dev
# Restlichen Code kopieren
COPY . .
# Wenn du TypeScript o.ä. builden musst, hier:
# RUN npm run build
# Start-Kommando anpassen, je nachdem was du hast
# z.B. "start" oder "dev"
CMD ["npm", "run", "dev"]