Compare commits
2 Commits
master
...
arm_tunnel
Author | SHA1 | Date |
---|---|---|
chenxingming | cee97090ec | |
chenxingming | af0eea6b45 |
14
Dockerfile
14
Dockerfile
|
@ -1,13 +1,15 @@
|
||||||
FROM python:3.7.16
|
FROM nvcr.io/nvidia/l4t-tensorflow:r32.6.1-tf2.5-py3
|
||||||
|
RUN apt-get install make g++ gcc
|
||||||
RUN pip install gunicorn==20.1.0
|
RUN pip3 install gunicorn
|
||||||
RUN pip install setuptools==46.1.3
|
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 pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
|
||||||
COPY ./app /app
|
COPY ./app /app
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
CMD ["gunicorn", "--bind", ":5000", "server:app"]
|
CMD ["gunicorn", "--bind", ":5000", "server:app"]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
|
||||||
|
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -1,3 +1,3 @@
|
||||||
# /usr/bash
|
# /usr/bash
|
||||||
|
|
||||||
docker build --tag hpds-road-detection:1.0.0 .
|
docker build --tag hpds-tunnel-detection:1.0.0 .
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
version: "3.6"
|
version: "3.6"
|
||||||
services:
|
services:
|
||||||
hpds-python-model:
|
hpds-tunnel-detection-model:
|
||||||
container_name: hpds-road-detection-model
|
container_name: hpds-tunnel-detection-model
|
||||||
image: hpds-road-detection:1.0.0
|
image: hpds-tunnel-detection:1.0.0
|
||||||
networks:
|
networks:
|
||||||
- hpds-network
|
- hpds-network
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8000:5000"
|
- "8001:5000"
|
||||||
volumes:
|
volumes:
|
||||||
- /usr/local/cuda/lib64:/usr/local/cuda/lib64
|
- /usr/local/cuda/lib64:/usr/local/cuda/lib64
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue