diff --git a/Dockerfile b/Dockerfile index 7c6fa15..8cb1bad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,19 @@ FROM python:3.12 RUN sed -i 's@deb.debian.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list.d/debian.sources -RUN apt update -RUN apt install vim tree -y +RUN apt update && apt install vim tree -y && apt clean WORKDIR /app + RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple ADD requirements.txt requirements.txt RUN pip install -r requirements.txt -RUN playwright install -RUN playwright install-deps +RUN playwright install chromium --with-deps ADD . . RUN pip install . EXPOSE 8001 -CMD ["/bin/bash", "-c", "pagesaver init;pagesaver server"] \ No newline at end of file +CMD ["/bin/bash", "-c", "pagesaver init;pagesaver server"]