From 405e2d3a4c3af1738c886d1e5970f90c03fd783a Mon Sep 17 00:00:00 2001 From: fanyinrumeng <42991257+fanyinrumeng@users.noreply.github.com> Date: Mon, 2 Sep 2024 23:12:27 +0800 Subject: [PATCH] =?UTF-8?q?:rocket:=20=E6=9B=B4=E6=96=B0Dockerfile=20(#159?= =?UTF-8?q?9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 18776e5a..343d4d96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,13 @@ WORKDIR /app/zhenxun COPY . /app/zhenxun +RUN apt update && \ + apt upgrade -y && \ + apt install -y --no-install-recommends \ + gcc \ + g++ && \ + apt clean + RUN pip install poetry -i https://mirrors.aliyun.com/pypi/simple/ RUN poetry install @@ -14,6 +21,8 @@ VOLUME /app/zhenxun/data /app/zhenxun/data VOLUME /app/zhenxun/resources /app/zhenxun/resources +VOLUME /app/zhenxun/.env.dev /app/zhenxun/.env.dev + RUN poetry run playwright install --with-deps chromium -CMD ["poetry", "run", "python", "bot.py"] \ No newline at end of file +CMD ["poetry", "run", "python", "bot.py"]