🚀 更新Dockerfile (#1599)

This commit is contained in:
fanyinrumeng
2024-09-02 23:12:27 +08:00
committed by GitHub
parent 02aba68269
commit 405e2d3a4c
+10 -1
View File
@@ -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"]
CMD ["poetry", "run", "python", "bot.py"]