Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -43,8 +43,12 @@ RUN chmod 777 ./PandoraNext
|
|
| 43 |
# 创建全局缓存目录并提供最宽松的权限
|
| 44 |
RUN mkdir /.cache && chmod 777 /.cache
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
# 开放端口
|
| 47 |
EXPOSE 8081 7860
|
| 48 |
|
| 49 |
# 启动命令
|
| 50 |
-
CMD ["sh"
|
|
|
|
| 43 |
# 创建全局缓存目录并提供最宽松的权限
|
| 44 |
RUN mkdir /.cache && chmod 777 /.cache
|
| 45 |
|
| 46 |
+
# 复制启动脚本
|
| 47 |
+
COPY entrypoint.sh /app/entrypoint.sh
|
| 48 |
+
RUN chmod +x /app/entrypoint.sh
|
| 49 |
+
|
| 50 |
# 开放端口
|
| 51 |
EXPOSE 8081 7860
|
| 52 |
|
| 53 |
# 启动命令
|
| 54 |
+
CMD ["/app/entrypoint.sh"]
|