调试docker-compose启动
This commit is contained in:
@@ -111,18 +111,18 @@ services:
|
||||
# capabilities: [ 'gpu' ]
|
||||
# driver: 'nvidia'
|
||||
|
||||
api_test:
|
||||
<<: *project_template
|
||||
build:
|
||||
context: .
|
||||
container_name: api_test
|
||||
hostname: api_test
|
||||
depends_on:
|
||||
- ocr_api
|
||||
# - settlement_api
|
||||
# - discharge_api
|
||||
# - cost_api
|
||||
# - clas_api
|
||||
# - det_api
|
||||
# - dewarp_api
|
||||
command: [ 'api_test.py' ]
|
||||
# api_test:
|
||||
# <<: *project_template
|
||||
# build:
|
||||
# context: .
|
||||
# container_name: api_test
|
||||
# hostname: api_test
|
||||
# depends_on:
|
||||
# - ocr_api
|
||||
## - settlement_api
|
||||
## - discharge_api
|
||||
## - cost_api
|
||||
## - clas_api
|
||||
## - det_api
|
||||
## - dewarp_api
|
||||
# command: [ 'api_test.py' ]
|
||||
@@ -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