StarrySkyWorld commited on
Commit
84abaca
·
1 Parent(s): bb39ebb

fix: 修正Dockerfile中apt命令格式并清理缓存

Browse files

修正了Dockerfile中apt命令的格式,使用了`apt-get`代替`apt`,并将安装指令合并到一行中,同时在安装完成后清理了apt的缓存以减小镜像体积。

Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -7,8 +7,9 @@ ENV PORT=7860
7
  COPY . .
8
  COPY example.config.json config.json
9
 
10
- RUN apt update -y
11
- RUN apt install chromium chromium-chromedriver xvfb -y
 
12
 
13
  RUN pip install --no-cache-dir -r requirements.txt
14
  RUN chmod +x /app/startup.sh
 
7
  COPY . .
8
  COPY example.config.json config.json
9
 
10
+ RUN apt-get update -y \
11
+ && apt-get install -y chromium chromium-driver xvfb \
12
+ && rm -rf /var/lib/apt/lists/*
13
 
14
  RUN pip install --no-cache-dir -r requirements.txt
15
  RUN chmod +x /app/startup.sh