Files
Papo/dockerfile
T
Pascal Prießnitz 352217a17b
Deploy Discord Bot / deploy (push) Failing after 40s
added .\dockerfile[deploy]
2025-12-03 01:41:52 +01:00

22 lines
483 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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"]