Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -28,11 +28,9 @@ RUN wget -q https://github.com/OpenListTeam/OpenList/releases/download/beta/open
|
|
28 |
RUN mkdir -p /OpenList/data && \
|
29 |
chmod -R 777 /OpenList/data
|
30 |
|
31 |
-
# 添加脚本
|
32 |
-
|
33 |
# 复制并设置脚本权限
|
34 |
COPY sync_data.sh ./
|
35 |
-
RUN chmod
|
36 |
|
37 |
# 设置非root用户运行
|
38 |
RUN useradd -m openlistuser && \
|
@@ -41,4 +39,4 @@ RUN useradd -m openlistuser && \
|
|
41 |
USER openlistuser
|
42 |
|
43 |
# 启动服务
|
44 |
-
CMD
|
|
|
28 |
RUN mkdir -p /OpenList/data && \
|
29 |
chmod -R 777 /OpenList/data
|
30 |
|
|
|
|
|
31 |
# 复制并设置脚本权限
|
32 |
COPY sync_data.sh ./
|
33 |
+
RUN chmod +x openlist sync_data.sh
|
34 |
|
35 |
# 设置非root用户运行
|
36 |
RUN useradd -m openlistuser && \
|
|
|
39 |
USER openlistuser
|
40 |
|
41 |
# 启动服务
|
42 |
+
CMD ./sync_data.sh && ./openlist server
|