|
@@ -1,16 +1,13 @@
|
|
|
|
|
|
FROM python:3.10
|
|
FROM python:3.10
|
|
|
|
|
|
-
|
|
|
|
WORKDIR /app
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
COPY requirements.txt /app/
|
|
COPY requirements.txt /app/
|
|
|
|
|
|
-RUN pip install --no-cache-dir -r requirements.txt
|
|
+RUN pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
+RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
|
|
-
|
|
|
|
-COPY . /app
|
|
|
|
|
|
|
|
-
|
|
+CMD ["python3"]
|
|
-CMD ["hypercorn", "async_app:app", "--config", "hypercorn_config.toml"]
|
|
|