调试docker-compose启动

This commit is contained in:
2024-09-25 16:29:56 +08:00
parent 101b2126f4
commit 186cab0317
3 changed files with 17 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ ENV PYTHONUNBUFFERED=1 \
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
# 安装依赖
COPY requestments.txt /app/requirements.txt
COPY requirements.txt /app/requirements.txt
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \
&& pip install --no-cache-dir -r requirements.txt \
&& pip uninstall -y onnxruntime onnxruntime-gpu \
@@ -25,4 +25,4 @@ COPY . /app
# EXPOSE 8081
# 运行api接口具体接口在命令行或docker-compose.yml文件中定义
#ENTRYPOINT ["gunicorn"]
ENTRYPOINT ["gunicorn"]