jbilcke-hf HF staff commited on
Commit
5f6a9eb
1 Parent(s): 80ea539

forcefully install things.

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -10,7 +10,7 @@ WORKDIR /app
10
  COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
11
  RUN \
12
  if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
13
- elif [ -f package-lock.json ]; then npm ci; \
14
  elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
15
  else echo "Lockfile not found." && exit 1; \
16
  fi
 
10
  COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
11
  RUN \
12
  if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
13
+ elif [ -f package-lock.json ]; then npm ci --force; \
14
  elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
15
  else echo "Lockfile not found." && exit 1; \
16
  fi