Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -28,8 +28,11 @@ 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 |
# 设置非root用户运行
|
35 |
RUN useradd -m openlistuser && \
|
@@ -38,4 +41,4 @@ RUN useradd -m openlistuser && \
|
|
38 |
USER openlistuser
|
39 |
|
40 |
# 启动服务
|
41 |
-
CMD ["./openlist", "server"]
|
|
|
28 |
RUN mkdir -p /OpenList/data && \
|
29 |
chmod -R 777 /OpenList/data
|
30 |
|
31 |
+
# 添加脚本
|
32 |
+
|
33 |
+
# 复制并设置脚本权限
|
34 |
+
COPY sync_data.sh ./
|
35 |
+
RUN chmod 755 openlist sync_data.sh
|
36 |
|
37 |
# 设置非root用户运行
|
38 |
RUN useradd -m openlistuser && \
|
|
|
41 |
USER openlistuser
|
42 |
|
43 |
# 启动服务
|
44 |
+
CMD ["./sync_data.sh ./openlist", "server"]
|