x86
This commit is contained in:
parent
218147c82e
commit
1d5450054f
11
Dockerfile
11
Dockerfile
|
@ -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 apt-get install make g++ gcc
|
||||||
RUN pip3 install gunicorn
|
RUN pip3 install gunicorn
|
||||||
RUN pip3 install setuptools==46.1.3
|
RUN pip3 install setuptools==46.1.3
|
||||||
#RUN pip3 install flask numpy Pillow six matplotlib
|
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt /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
|
COPY ./app /app
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
CMD ["gunicorn", "--bind", ":5000", "server:app"]
|
CMD ["gunicorn", "--bind", ":5000", "server:app"]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,3 @@ Flask==1.1.2
|
||||||
numpy==1.18.4
|
numpy==1.18.4
|
||||||
Pillow==7.1.2
|
Pillow==7.1.2
|
||||||
six==1.15.0
|
six==1.15.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue