kevin.yang 6 months ago
parent
commit
99c4664e34
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Dockerfile

+ 3 - 1
Dockerfile

@@ -6,7 +6,9 @@ COPY . .
 
 ENV TZ=Asia/Shanghai
 
-RUN mkdir -p /app/cache && pip install -r requirements.txt --no-cache-dir
+RUN apt update && apt --no-install-recommends install -y libgl-dev libglib2.0-dev \
+    && apt-get clean && rm -rf /var/lib/apt/lists/* \
+    && pip install -r requirements.txt --no-cache-dir
 
 EXPOSE 8080