diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..5d0f2bf2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +.devcontainer/ +.github/ +.vscode/ +assets/ +k8s/ +tests/ +.dockerignore +.editorconfig +.gitignore +.pre-commit-config.yaml +.prettier* +docker-compose.yml +Dockerfile +LICENSE +*.md \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..18776e5a --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file