Dockerfile

This commit is contained in:
HibiKier 2024-08-14 13:35:03 +08:00
parent 032c93ebf9
commit 3003cbf359
2 changed files with 34 additions and 0 deletions

15
.dockerignore Normal file
View File

@ -0,0 +1,15 @@
.devcontainer/
.github/
.vscode/
assets/
k8s/
tests/
.dockerignore
.editorconfig
.gitignore
.pre-commit-config.yaml
.prettier*
docker-compose.yml
Dockerfile
LICENSE
*.md

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
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"]