2023-05-17 16:24:09 +08:00
|
|
|
FROM nvcr.io/nvidia/l4t-tensorflow:r32.6.1-tf2.5-py3
|
|
|
|
RUN apt-get install make g++ gcc
|
2023-06-02 10:30:35 +08:00
|
|
|
RUN pip3 install gunicorn
|
2023-05-17 16:24:09 +08:00
|
|
|
RUN pip3 install setuptools==46.1.3
|
2023-06-02 10:30:35 +08:00
|
|
|
|
2023-05-17 16:24:09 +08:00
|
|
|
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"]
|
|
|
|
|
|
|
|
|