You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
323 B
8 lines
323 B
FROM python:3.12.4-slim
|
|
WORKDIR /app
|
|
COPY requirements.txt requirements.txt
|
|
RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple && pip config set install.trusted-host mirrors.aliyun.com
|
|
RUN pip install -r requirements.txt
|
|
COPY . ./
|
|
CMD ["gunicorn", "-w", "4", "--bind", "0.0.0.0:3002", "myapp:app" ]
|