|
|
@@ -1,20 +1,8 @@
|
|
|
-FROM python:3.12-slim
|
|
|
+FROM tanlie/python:3.12-slim
|
|
|
|
|
|
WORKDIR /app
|
|
|
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 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
|
|
|
|
|
|
@@ -22,4 +10,4 @@ COPY . .
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
-CMD ["uwsgi", "--ini", "/app/uwsgi.ini"]
|
|
|
+CMD ["uwsgi", "--ini", "/app/uwsgi.ini"]
|