BRIDGE Platform Agent commited on
Commit
08423fc
·
1 Parent(s): 195092e

ci: align runtime on Node 24 for npm 11 lockfile compatibility

Browse files

- Dockerfile builder + runtime: node:24-alpine, npm ci --omit=dev
- workflow setup-node 24 (edgesOut Arborist crash on npm 10 with npm 11 lockfiles)

.github/workflows/hf-docker-space-deploy.yml CHANGED
@@ -14,7 +14,7 @@ jobs:
14
  - name: Setup Node.js
15
  uses: actions/setup-node@v4
16
  with:
17
- node-version: 20
18
  cache: npm
19
 
20
  - name: Install dependencies
 
14
  - name: Setup Node.js
15
  uses: actions/setup-node@v4
16
  with:
17
+ node-version: 24
18
  cache: npm
19
 
20
  - name: Install dependencies
Dockerfile CHANGED
@@ -1,15 +1,15 @@
1
- FROM node:20-alpine AS builder
2
  WORKDIR /app
3
  COPY package*.json ./
4
  RUN npm ci
5
  COPY . .
6
  RUN npm run build
7
 
8
- FROM node:20-alpine
9
  WORKDIR /app
10
  COPY --from=builder /app/dist ./dist
11
  COPY --from=builder /app/package*.json ./
12
- RUN npm ci --only=production
13
 
14
  # Hugging Face exposes port 7860
15
  ENV PORT=7860
 
1
+ FROM node:24-alpine AS builder
2
  WORKDIR /app
3
  COPY package*.json ./
4
  RUN npm ci
5
  COPY . .
6
  RUN npm run build
7
 
8
+ FROM node:24-alpine
9
  WORKDIR /app
10
  COPY --from=builder /app/dist ./dist
11
  COPY --from=builder /app/package*.json ./
12
+ RUN npm ci --omit=dev
13
 
14
  # Hugging Face exposes port 7860
15
  ENV PORT=7860