11 lines
473 B
Docker
11 lines
473 B
Docker
FROM docker-0.unsee.tech/python:3.12-slim
|
|
WORKDIR /app
|
|
COPY . /app
|
|
ENV TZ=Asia/Shanghai \
|
|
LANG=C.UTF-8
|
|
RUN apt-get update && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \
|
|
&& pip install yonyouopenapisdk-1.1.1-py3-none-any.whl -i https://mirrors.aliyun.com/pypi/simple/
|
|
RUN mkdir -p /app/logs && touch /app/logs/yj_room_agent.log
|
|
EXPOSE 9000
|
|
CMD ["gunicorn","-w 5","-b 0.0.0.0:9000","-t 1200", "yj_room_agent.wsgi"]
|