generated from ZhaoQi99/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |