diff --git a/Dockerfile b/Dockerfile index 2ae3e0c..11a2348 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,13 @@ WORKDIR /app COPY . /app # 安装依赖 -RUN pip install --no-cache-dir -r requirements.txt +RUN apt-get update && apt-get install -y \ + build-essential \ + libssl-dev \ + libffi-dev \ + python3-dev \ + && pip install --upgrade pip \ + && pip install --no-cache-dir -r requirements.txt # 暴露端口 EXPOSE 8080