sitcod3 commited on
Commit
7482a10
·
verified ·
1 Parent(s): 04bae62

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -3,15 +3,15 @@ WORKDIR /app
3
  COPY package*.json ./
4
  # Lockfile generated on Windows pins win32-only optional native deps (rollup),
5
  # which breaks Linux builds — npm/cli bug #4828. Remove and resolve fresh.
6
- RUN rm -f package-lock.json && npm install --prefer-offline --no-audit --no-fund --no-cache --prefer-offline --no-audit --no-fund
7
  COPY . .
8
- RUN npm run build --if-present --if-present
9
 
10
  FROM node:22-slim
11
  WORKDIR /app
12
  COPY --from=builder /app/dist ./dist
13
  COPY --from=builder /app/package.json ./package.json
14
- RUN npm install --prefer-offline --no-audit --no-fund --no-cache --prefer-offline --no-audit --no-fund --omit=dev
15
 
16
  # Hugging Face exposes port 7860
17
  ENV PORT=7860
@@ -23,3 +23,5 @@ CMD ["npm", "start"]
23
  # FORCE REBUILD 1789683004
24
 
25
  # FORCE REBUILD 1789683497
 
 
 
3
  COPY package*.json ./
4
  # Lockfile generated on Windows pins win32-only optional native deps (rollup),
5
  # which breaks Linux builds — npm/cli bug #4828. Remove and resolve fresh.
6
+ RUN rm -f package-lock.json && npm install --prefer-offline --no-audit --no-fund --no-cache
7
  COPY . .
8
+ RUN npm run build --if-present
9
 
10
  FROM node:22-slim
11
  WORKDIR /app
12
  COPY --from=builder /app/dist ./dist
13
  COPY --from=builder /app/package.json ./package.json
14
+ RUN npm install --prefer-offline --no-audit --no-fund --no-cache --omit=dev
15
 
16
  # Hugging Face exposes port 7860
17
  ENV PORT=7860
 
23
  # FORCE REBUILD 1789683004
24
 
25
  # FORCE REBUILD 1789683497
26
+
27
+ # FORCE REBUILD 1789684079