zhenxun_bot/Dockerfile

19 lines
370 B
Docker
Raw Normal View History

2024-08-14 13:35:03 +08:00
FROM python:3.11-slim-bookworm
EXPOSE 8080
WORKDIR /app/zhenxun
COPY . /app/zhenxun
RUN pip install poetry -i https://mirrors.aliyun.com/pypi/simple/
RUN poetry install
VOLUME /app/zhenxun/data /app/zhenxun/data
VOLUME /app/zhenxun/resources /app/zhenxun/resources
RUN poetry run playwright install --with-deps chromium
CMD ["poetry", "run", "python", "bot.py"]