Skip to content

Commit

Permalink
perf: ⚡️ docker image size
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoQi99 committed Aug 14, 2024
1 parent b701fe3 commit b9835ad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
FROM python:3.12

RUN sed -i '[email protected]@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"]
CMD ["/bin/bash", "-c", "pagesaver init;pagesaver server"]

0 comments on commit b9835ad

Please sign in to comment.