[deploy] Ensure package-lock copied for npm ci
Some checks failed
Deploy Discord Bot / deploy (push) Failing after 20s

This commit is contained in:
Pascal Prießnitz
2025-12-04 16:55:39 +01:00
parent 06c752c7bb
commit e5956ae755

View File

@@ -13,7 +13,9 @@ ENV DATABASE_URL=postgresql://user:pass@localhost:5432/papo?schema=public
ENV PRISMA_IGNORE_ENV_LOAD=true ENV PRISMA_IGNORE_ENV_LOAD=true
# Install dependencies (inkl. dev) # Install dependencies (inkl. dev)
COPY package*.json ./ COPY package.json package-lock.json ./
# fail fast if lockfile missing in build context
RUN test -f package-lock.json
RUN npm ci --include=dev RUN npm ci --include=dev
# Ensure prisma CLI available globally (avoids path issues) # Ensure prisma CLI available globally (avoids path issues)