Files
Papo/dockerfile
Pascal Prießnitz df672de1ec
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 1m49s
updated .\dockerfile[deploy]
2025-12-03 01:50:24 +01:00

28 lines
656 B
Plaintext
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.
# Node 22 auf Debian-Basis (glibc, nicht alpine/musl)
FROM node:22-bookworm
# System-Pakete für native Module (@discordjs/opus, node-gyp, etc.)
RUN apt-get update && apt-get install -y \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Arbeitsverzeichnis
WORKDIR /usr/src/app
# package.json & lockfile zuerst kopieren (für Caching)
COPY package*.json ./
# Dependencies installieren (Prod ohne devDependencies, wenn du das willst)
RUN npm ci
# Restlichen Code kopieren
COPY . .
# Wenn du TypeScript oder ein Build-Skript hast:
# RUN npm run build
# Startkommando bei dir scheinst du dev zu nutzen
CMD ["npm", "run", "dev"]