tanlie hace 4 días
padre
commit
765b79f03e
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      Dockerfile

+ 10 - 1
Dockerfile

@@ -6,7 +6,16 @@ COPY requirements.txt ./
 RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
     pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn
 
-RUN python -m pip install --upgrade pip \
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends \
+        build-essential \
+        python3-dev \
+        libxml2-dev \
+        libssl-dev \
+        zlib1g-dev && \
+    rm -rf /var/lib/apt/lists/*
+
+RUN python -m pip install --upgrade pip setuptools wheel \
     && python -m pip install --no-cache-dir -r requirements.txt
 
 COPY . .