mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update Dockerfile
This commit is contained in:
parent
daa40ae8b8
commit
6cda41df6d
@ -6,6 +6,13 @@ WORKDIR /app/zhenxun
|
|||||||
|
|
||||||
COPY . /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 pip install poetry -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
|
||||||
RUN poetry install
|
RUN poetry install
|
||||||
@ -16,4 +23,4 @@ VOLUME /app/zhenxun/resources /app/zhenxun/resources
|
|||||||
|
|
||||||
RUN poetry run playwright install --with-deps chromium
|
RUN poetry run playwright install --with-deps chromium
|
||||||
|
|
||||||
CMD ["poetry", "run", "python", "bot.py"]
|
CMD ["poetry", "run", "python", "bot.py"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user