road_detection/Dockerfile

17 lines
421 B
Docker
Raw Normal View History

2023-04-19 17:32:56 +08:00
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 pip3 install flask numpy Pillow six matplotlib
2023-03-10 22:06:22 +08:00
RUN mkdir -p /app
WORKDIR /app
2023-04-19 17:32:56 +08:00
2023-03-10 22:06:22 +08:00
COPY requirements.txt /app
2023-04-19 17:32:56 +08:00
RUN pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
2023-03-10 22:06:22 +08:00
COPY ./app /app
EXPOSE 5000
2023-04-19 17:32:56 +08:00
CMD ["gunicorn", "--bind", ":5000", "server:app"]