Compare commits

..

4 Commits

Author SHA1 Message Date
chenxingming 9b894da41f 修改名称 2023-04-20 14:05:16 +08:00
chenxingming 4916bc2c64 端口 2023-04-19 18:17:09 +08:00
chenxingming 4b72c4a6b9 道路 docker 打包 2023-04-19 18:14:12 +08:00
chenxingming 1d5450054f x86 2023-04-19 17:41:59 +08:00
4 changed files with 7 additions and 22 deletions

View File

@ -1,10 +1,12 @@
FROM python:3.7.16 FROM tensorflow/tensorflow:2.5.1
RUN pip install gunicorn==20.1.0 RUN apt-get install make g++ gcc
RUN pip install setuptools==46.1.3 RUN pip3 install gunicorn
RUN pip3 install setuptools==46.1.3
RUN mkdir -p /app RUN mkdir -p /app
WORKDIR /app WORKDIR /app
COPY requirements.txt /app COPY requirements.txt /app
RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

View File

@ -1,16 +0,0 @@
FROM nvcr.io/nvidia/l4t-tensorflow:r32.6.1-tf2.5-py3
RUN apt-get install make g++ gcc
RUN pip3 install gunicorn
RUN pip3 install setuptools==46.1.3
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt /app
RUN pip3 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,6 +1,6 @@
version: "3.6" version: "3.6"
services: services:
hpds-python-model: hpds-road-detection-model:
container_name: hpds-road-detection-model container_name: hpds-road-detection-model
image: hpds-road-detection:1.0.0 image: hpds-road-detection:1.0.0
networks: networks:

View File

@ -1,5 +1,4 @@
Flask==1.1.2 Flask==1.1.2
numpy==1.19.5 numpy==1.18.4
Pillow==7.1.2 Pillow==7.1.2
six==1.15.0 six==1.15.0
tensorflow==2.5.1