调试docker-compose启动
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user