Compare commits

...

3 Commits

Author SHA1 Message Date
chenxingming ab1e18bed3 包名修改 2023-04-20 14:10:56 +08:00
chenxingming 58c1f55c86 隧道 docker 打包 2023-04-19 18:16:33 +08:00
chenxingming 1d5450054f x86 2023-04-19 17:41:59 +08:00
5 changed files with 10 additions and 30 deletions

View File

@ -1,16 +1,15 @@
FROM nvcr.io/nvidia/l4t-tensorflow:r32.6.1-tf2.5-py3
FROM tensorflow/tensorflow:2.5.1
RUN apt-get install make g++ gcc
RUN pip3 install gunicorn
RUN pip3 install setuptools==46.1.3
#RUN pip3 install flask numpy Pillow six matplotlib
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt /app
RUN pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
COPY ./app /app
EXPOSE 5000
CMD ["gunicorn", "--bind", ":5000", "server:app"]

View File

@ -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"]

View File

@ -1,3 +1,3 @@
# /usr/bash
docker build --tag hpds-road-detection:1.0.0 .
docker build --tag hpds-tunnel-detection:1.0.0 .

View File

@ -1,13 +1,13 @@
version: "3.6"
services:
hpds-python-model:
container_name: hpds-road-detection-model
image: hpds-road-detection:1.0.0
hpds-tunnel-detection-model:
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

View File

@ -2,4 +2,3 @@ Flask==1.1.2
numpy==1.18.4
Pillow==7.1.2
six==1.15.0