QQ-GitHub-Bot/Dockerfile
2021-03-09 01:34:47 +08:00

14 lines
363 B
Docker

FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
RUN ./install_wkhtmltox buster_amd64
RUN dpkg -i wkhtmltox_*.deb
RUN python3 -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
COPY ./pyproject.toml ./poetry.lock* /app/
RUN poetry install --no-root --no-dev