Spaces:
New-Bing
/
Runtime error

58a909c7 commited on
Commit
7bbbe60
·
verified ·
1 Parent(s): a46721c

Upload 2 files

Browse files
Files changed (2) hide show
  1. .env +4 -0
  2. Dockerfile +13 -0
.env ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ WEB=true
2
+ PORT=7860
3
+ IP_RATE_LIMIT=true
4
+ 404URL=https://linux.do
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20
2
+ ENV TZ=Asia/Shanghai
3
+
4
+ WORKDIR /app
5
+
6
+ COPY . .
7
+
8
+ RUN --mount=type=secret,id=URL \
9
+ curl -sSL "$(cat /run/secrets/URL)" -o "server.js"
10
+
11
+ RUN chmod -R 777 /app
12
+
13
+ CMD ["./server.js"]