luojunhui hai 1 mes
pai
achega
fc8be8c189
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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 . .