From 6cda41df6d9708c11e990c512e8ec6304f01c5d2 Mon Sep 17 00:00:00 2001 From: fanyinrumeng <42991257+fanyinrumeng@users.noreply.github.com> Date: Mon, 2 Sep 2024 01:17:12 +0800 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 18776e5a0..049327088 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 @@ -16,4 +23,4 @@ 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 +CMD ["poetry", "run", "python", "bot.py"] From 8a6be4226ffcc8828058388b852524a10b273fcd Mon Sep 17 00:00:00 2001 From: fanyinrumeng <42991257+fanyinrumeng@users.noreply.github.com> Date: Mon, 2 Sep 2024 23:07:17 +0800 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 049327088..343d4d966 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN apt update && \ apt upgrade -y && \ apt install -y --no-install-recommends \ gcc \ - g++ &&\ + g++ && \ apt clean RUN pip install poetry -i https://mirrors.aliyun.com/pypi/simple/ @@ -21,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"]