Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
-
# 使用已有的镜像作为基础镜像
|
| 2 |
FROM rockchin/free-one-api:latest
|
| 3 |
|
| 4 |
-
# 设置工作目录
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
#
|
|
|
|
|
|
|
| 8 |
EXPOSE 3000
|
| 9 |
|
| 10 |
-
# 启动服务
|
| 11 |
CMD ["python", "main.py"]
|
|
|
|
|
|
|
| 1 |
FROM rockchin/free-one-api:latest
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# 创建 data 目录并设置权限
|
| 6 |
+
RUN mkdir -p /app/data && chmod 777 /app/data
|
| 7 |
+
|
| 8 |
EXPOSE 3000
|
| 9 |
|
|
|
|
| 10 |
CMD ["python", "main.py"]
|