fomext commited on
Commit
6f50d80
·
verified ·
1 Parent(s): a574f22

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -4
Dockerfile CHANGED
@@ -1,8 +1,20 @@
1
- FROM itzcrazykns1337/vane:1.11.2
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
 
 
 
1
+ FROM node:18-alpine
2
 
3
+ WORKDIR /app
4
+
5
+ # Install git
6
+ RUN apk add --no-cache git
7
+
8
+ # Clone specific version
9
+ RUN git clone --branch v1.11.2 https://github.com/ItzCrazyKns/Vane.git .
10
+
11
+ # Install dependencies
12
+ RUN npm install
13
+
14
+ # Set environment variables
15
  ENV PORT=7860
16
  ENV HOSTNAME=0.0.0.0
17
 
18
+ EXPOSE 7860
19
+
20
+ CMD ["npm", "start"]