From 58c1f55c860213e6c0695ac01908796468b3c0c1 Mon Sep 17 00:00:00 2001 From: chenxingming <13019562@qq.com> Date: Wed, 19 Apr 2023 18:16:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=A7=E9=81=93=20docker=20=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile_bak | 18 ------------------ build.sh | 2 +- docker-compose.yml | 6 +++--- 3 files changed, 4 insertions(+), 22 deletions(-) delete mode 100644 Dockerfile_bak diff --git a/Dockerfile_bak b/Dockerfile_bak deleted file mode 100644 index 25c9de5..0000000 --- a/Dockerfile_bak +++ /dev/null @@ -1,18 +0,0 @@ -FROM python:3.7.16 -ENV PYTHONUNBUFFERED 1 -# RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list -# RUN cat /etc/apt/sources.list -# RUN apt-get update \ -# && apt-get install -y make \ -# && apt-get clean \ -# && rm -rf /var/lib/apt/lists/* -RUN mkdir -p /app -WORKDIR /app -COPY requirements.txt /app -RUN python -m venv . -# RUN pip install pip==23.0.1 -RUN pip install setuptools==46.1.3 -RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ -COPY ./app /app -EXPOSE 5000 -CMD ["gunicorn", "--bind", ":5000", "server:app"] diff --git a/build.sh b/build.sh index 84bca44..4e0adc4 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,3 @@ # /usr/bash -docker build --tag hpds-road-detection:1.0.0 . +docker build --tag hpds-tunnel-detection:1.0.0 . diff --git a/docker-compose.yml b/docker-compose.yml index 2526ba2..7f63b2f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,13 @@ version: "3.6" services: hpds-python-model: - container_name: hpds-road-detection-model - image: hpds-road-detection:1.0.0 + container_name: hpds-tunnel-detection-model + image: hpds-tunnel-detection:1.0.0 networks: - hpds-network restart: always ports: - - 8000:5000 + - "8001:5000" volumes: - /usr/local/cuda/lib64:/usr/local/cuda/lib64