updated .\dockerfile and .\prisma\ [deploy]
Some checks failed
Deploy Discord Bot / deploy (push) Failing after 1m52s

This commit is contained in:
Pascal Prießnitz
2025-12-03 03:14:43 +01:00
parent 7b81088e8b
commit a7c518cc9d

View File

@@ -8,6 +8,8 @@ RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt
ENV NODE_ENV=development
ENV NPM_CONFIG_PRODUCTION=false
ENV PATH="/usr/src/app/node_modules/.bin:${PATH}"
# dummy DB URL for prisma generate at build time
ENV DATABASE_URL=postgresql://user:pass@localhost:5432/papo?schema=public
# Install dependencies (inkl. dev)
COPY package*.json ./
@@ -20,7 +22,7 @@ RUN npm install -g prisma@5.4.2
COPY . .
# Generate Prisma client (explicit schema path)
RUN prisma generate --schema=prisma/schema.prisma
RUN prisma generate --schema=src/database/schema.prisma
# Optional: show versions in build log
RUN node -v && npm -v && npx prisma -v