[deploy] Allow npm install fallback in Docker build
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 2m14s
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 2m14s
This commit is contained in:
@@ -16,7 +16,8 @@ ENV PRISMA_IGNORE_ENV_LOAD=true
|
|||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
# fail fast if lockfile missing in build context
|
# fail fast if lockfile missing in build context
|
||||||
RUN test -f package-lock.json
|
RUN test -f package-lock.json
|
||||||
RUN npm ci --include=dev
|
# npm ci fails in some pipelines despite lockfile; fall back to npm install if needed
|
||||||
|
RUN npm ci --include=dev || npm install --include=dev
|
||||||
|
|
||||||
# Ensure prisma CLI available globally (avoids path issues)
|
# Ensure prisma CLI available globally (avoids path issues)
|
||||||
RUN npm install -g prisma@5.4.2
|
RUN npm install -g prisma@5.4.2
|
||||||
|
|||||||
Reference in New Issue
Block a user