fomext commited on
Commit
bf38748
·
verified ·
1 Parent(s): 528ef6e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -19
Dockerfile CHANGED
@@ -1,23 +1,8 @@
1
- FROM node:20-alpine
2
 
3
- WORKDIR /app
4
-
5
- RUN apk add --no-cache git
6
-
7
- # Clone specific version
8
- RUN git clone --depth 1 --branch v1.11.2 https://github.com/ItzCrazyKns/Vane.git .
9
-
10
- # Install deps
11
- RUN npm install
12
-
13
- # Build Next.js app (CRITICAL)
14
- RUN npm run build
15
-
16
- # Spaces requirements
17
  ENV PORT=7860
18
  ENV HOSTNAME=0.0.0.0
19
- ENV NODE_ENV=production
20
-
21
- EXPOSE 7860
22
 
23
- CMD ["npm", "start"]
 
1
+ FROM itzcrazykns1337/vane:latest
2
 
3
+ # HuggingFace Spaces only exposes port 7860.
4
+ # Vane defaults to 3000 — this env var moves it to 7860.
 
 
 
 
 
 
 
 
 
 
 
 
5
  ENV PORT=7860
6
  ENV HOSTNAME=0.0.0.0
 
 
 
7
 
8
+ EXPOSE 7860