Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -5,9 +5,11 @@ USER root
|
|
| 5 |
|
| 6 |
RUN mkdir -p /opt/openlist/data
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
RUN chmod
|
| 11 |
|
| 12 |
EXPOSE 7860
|
| 13 |
-
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
RUN mkdir -p /opt/openlist/data
|
| 7 |
|
| 8 |
+
# 复制启动脚本并赋予执行权限
|
| 9 |
+
COPY entrypoint.sh /opt/openlist/
|
| 10 |
+
RUN chmod +x /opt/openlist/entrypoint.sh
|
| 11 |
|
| 12 |
EXPOSE 7860
|
| 13 |
+
|
| 14 |
+
# 用启动脚本作为入口点
|
| 15 |
+
ENTRYPOINT ["/opt/openlist/entrypoint.sh"]
|