Files
Papo/dockerfile
Pascal Prießnitz 9d4e0383d7
Some checks failed
Deploy Discord Bot / deploy (push) Failing after 46s
updated .\dockerfile and .\prisma\ [deploy]
2025-12-03 02:16:15 +01:00

28 lines
601 B
Plaintext

FROM node:22-bookworm
RUN apt-get update && apt-get install -y \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY package*.json ./
# Alle Dependencies inkl. dev installieren
RUN npm ci
# OPTIONAL, aber hilfreich: global ts-node-dev installieren,
# damit der Befehl IMMER verfügbar ist, auch wenn node_modules-mal zickt
RUN npm install -g ts-node-dev
COPY . .
RUN npx prisma generate
# Kleine Debug-Zeile: zeigt dir im Build-Log, dass ts-node-dev im PATH ist
RUN ts-node-dev --version || echo "ts-node-dev not in PATH?!"
CMD ["npm", "run", "dev"]