fix(docker): remove --prefer-offline from build stage to fix npm ci in CI/CD
Some checks are pending
CI / lint + typecheck + tests (push) Waiting to run
CI / docker build + push (push) Blocked by required conditions

Coolify's build environment has no npm cache populated, so --prefer-offline
causes npm ci to fail to install devDependencies (incl. typescript).
Removing the flag ensures npm always fetches from registry during builds.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
barodine 2026-05-02 10:10:55 +00:00
parent f490152172
commit 6fcb5cbc1d

View file

@ -22,9 +22,9 @@ WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install all dependencies (including devDependencies) with cache mount
RUN --mount=type=cache,target=/root/.npm \
npm ci --prefer-offline
# Install all dependencies (including devDependencies)
# Note: no --prefer-offline so npm always fetches from registry in CI/CD
RUN npm ci
# Copy TypeScript config
COPY tsconfig.json tsconfig.build.json ./