Dockerfile

This commit is contained in:
chenxingming 2023-06-02 10:30:35 +08:00
parent 7f1f1e9e76
commit bf1b6730b0
2 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,13 @@
FROM python:3.7.16 FROM python:3.7.16
RUN pip install gunicorn==20.1.0 RUN pip install gunicorn==20.1.0
RUN pip install setuptools==46.1.3 RUN pip 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/
COPY ./app /app COPY ./app /app
EXPOSE 5000 EXPOSE 5000
CMD ["gunicorn", "--bind", ":5000", "server:app"] CMD ["gunicorn", "--bind", ":5000", "server:app"]

View File

@ -2,7 +2,7 @@ FROM nvcr.io/nvidia/l4t-tensorflow:r32.6.1-tf2.5-py3
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