hstz commited on
Commit
b9bcf67
·
verified ·
1 Parent(s): 001abe2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -1
Dockerfile CHANGED
@@ -1 +1,22 @@
1
- FROM drfyup/fycursor:latest
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM drfyup/fycursor:latest
2
+
3
+ # 创建必要的目录和文件
4
+ RUN mkdir -p /app && \
5
+ touch /app/.token /app/.token-list && \
6
+ chmod -R 777 /app
7
+
8
+ # 设置工作目录
9
+ WORKDIR /app
10
+
11
+ # 设置环境变量
12
+ ENV PORT=3000
13
+ ENV AUTH_TOKEN=35794406
14
+
15
+ # 确保使用正确的权限
16
+ USER root
17
+
18
+ # 暴露端口
19
+ EXPOSE 3000
20
+
21
+ # 使用原始镜像的启动命令
22
+ CMD ["./cursor-api"]