瀏覽代碼

delete the requirement of build-essential

chenhaiyang 1 年之前
父節點
當前提交
52fbb6dbd6
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      Dockerfile

+ 1 - 3
Dockerfile

@@ -6,9 +6,7 @@ COPY ./requirements.txt /code/requirements.txt
 COPY ./app /code/app
 COPY .env_pro /code/.env
 
-RUN apt-get update && apt-get install -y --no-install-recommends \
-    build-essential && \
-    pip install --no-cache-dir --upgrade -r /code/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ && \
+RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ && \
     mkdir -p /code/ml_models
 
 ENV PYTHONPATH=/code