Files
yj_room_agent/Dockerfile
2025-08-27 15:44:14 +08:00

11 lines
580 B
Docker

FROM docker.m.daocloud.io/python:3.12-slim
WORKDIR /app
COPY . /app
ENV TZ=Asia/Shanghai \
LANG=C.UTF-8
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/ \
&& 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
EXPOSE 9000
CMD ["gunicorn","yj_room_agent.wsgi:application","-b","0.0.0.0:9000","-t","12000","--threads","50"]