2023-05-17 16:24:09 +08:00
|
|
|
FROM python:3.7.16
|
|
|
|
|
2023-06-02 10:30:35 +08:00
|
|
|
RUN pip install gunicorn==20.1.0
|
2023-05-17 16:24:09 +08:00
|
|
|
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-06-02 10:30:35 +08:00
|
|
|
|
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"]
|