sitcod3 commited on
Commit
43c5e34
·
verified ·
1 Parent(s): 02eb044

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -21
Dockerfile CHANGED
@@ -1,21 +1,23 @@
1
- FROM node:22-slim AS builder
2
- 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
7
- COPY . .
8
- RUN npm run build
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 --omit=dev
15
-
16
- # Hugging Face exposes port 7860
17
- ENV PORT=7860
18
- ENV NODE_ENV=production
19
- EXPOSE 7860
20
-
21
- CMD ["npm", "start"]
 
 
 
1
+ FROM node:22-slim AS builder
2
+ 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
7
+ COPY . .
8
+ RUN npm run build
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 --omit=dev
15
+
16
+ # Hugging Face exposes port 7860
17
+ ENV PORT=7860
18
+ ENV NODE_ENV=production
19
+ EXPOSE 7860
20
+
21
+ CMD ["npm", "start"]
22
+
23
+ # FORCE REBUILD 1789683004