Files
yj_room_agent/Dockerfile

11 lines
580 B
Docker
Raw Normal View History

2025-08-27 15:44:14 +08:00
FROM docker.m.daocloud.io/python:3.12-slim
2025-06-06 10:14:29 +08:00
WORKDIR /app
COPY . /app
ENV TZ=Asia/Shanghai \
LANG=C.UTF-8
2025-08-27 15:44:14 +08:00
RUN rm -rf logs .git .idea .venv && apt-get update && apt-get install -y vim curl && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \
2025-06-06 10:14:29 +08:00
&& 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 && rm -rf *.whl
2025-06-06 10:14:29 +08:00
EXPOSE 9000
2025-08-27 15:44:14 +08:00
CMD ["gunicorn","yj_room_agent.wsgi:application","-b","0.0.0.0:9000","-t","12000","--threads","50"]