luojunhui 2 天之前
父節點
當前提交
fc8be8c189
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Dockerfile

+ 3 - 3
Dockerfile

@@ -9,9 +9,9 @@ ENV TZ=Asia/Shanghai
 
 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
 
-#COPY ./requirements.txt /app/requirements.txt
-#
-#RUN pip install --no-cache-dir -r /app/requirements.txt -i https://mirrors.aliyun.com/pypi/simple
+COPY requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple \
+    && pip install --no-cache-dir --upgrade pillow
 
 COPY . .