road_detection/Dockerfile

13 lines
305 B
Docker
Raw Normal View History

2023-05-17 16:24:09 +08:00
FROM python:3.7.16
RUN pip install gunicorn==20.1.0
RUN pip install setuptools==46.1.3
2023-03-10 22:06:22 +08:00
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt /app
2023-05-17 16:24:09 +08:00
RUN pip 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"]