GIT commited on
Commit
fc56e8a
·
verified ·
1 Parent(s): a543a75

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -6,8 +6,8 @@ USER root
6
  # 创建数据目录
7
  RUN mkdir -p /opt/openlist/data
8
 
9
- # 安装 Nginx
10
- RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
11
 
12
  # 复制 Nginx 配置
13
  COPY nginx.conf /etc/nginx/nginx.conf
@@ -15,5 +15,5 @@ COPY nginx.conf /etc/nginx/nginx.conf
15
  # 暴露端口
16
  EXPOSE 7860
17
 
18
- # 启动命令:先启动 OpenList,再启动 Nginx
19
  CMD ["sh", "-c", "/opt/openlist/start.sh & nginx -g 'daemon off;'"]
 
6
  # 创建数据目录
7
  RUN mkdir -p /opt/openlist/data
8
 
9
+ # 安装 Nginx(Alpine 用 apk)
10
+ RUN apk update && apk add --no-cache nginx
11
 
12
  # 复制 Nginx 配置
13
  COPY nginx.conf /etc/nginx/nginx.conf
 
15
  # 暴露端口
16
  EXPOSE 7860
17
 
18
+ # 启动命令
19
  CMD ["sh", "-c", "/opt/openlist/start.sh & nginx -g 'daemon off;'"]