fix:修改dockerfile
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
FROM docker-0.unsee.tech/python:3.12-slim
|
||||
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 && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \
|
||||
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 ["hypercorn","-b","0.0.0.0:9000","yj_room_agent.asgi:application"]
|
||||
CMD ["gunicorn","yj_room_agent.wsgi:application","-b","0.0.0.0:9000","-t","12000","--threads","50"]
|
||||
|
||||
@@ -3,5 +3,5 @@ requests==2.32.3
|
||||
python-decouple==3.8
|
||||
APScheduler==3.11.0
|
||||
pydantic-ai==0.3.6
|
||||
Hypercorn==0.17.3
|
||||
gunicorn==23.0.0
|
||||
redis==6.2.0
|
||||
Reference in New Issue
Block a user