您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

15 行
382 B

  1. FROM python:3.11-bookworm
  2. RUN apt update && apt install -y tini ca-certificates && \
  3. apt-get clean && \
  4. rm -rf /var/lib/apt/lists/*
  5. WORKDIR /dispatcher
  6. COPY requirements.txt .
  7. RUN pip install -r requirements.txt
  8. COPY main.py .
  9. ENV DISPATCHER_SETTINGS=/dispatcher/config.py
  10. ENTRYPOINT [ "/usr/bin/tini-static", "--", "gunicorn", "-w", "4", "--access-logfile=-", "main:app" ]