Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #1599

Merged
merged 15 commits into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
Loading