-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make changes for open sourcing the project
- Loading branch information
1 parent
42bbe5b
commit 59e59da
Showing
28 changed files
with
5,075 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: pythondoctor | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: coskundeniz | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # |
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM python:3.11.6-slim-bookworm | ||
|
||
# install required packages | ||
RUN apt-get update && apt-get install -y wget gnupg | ||
|
||
# install google chrome | ||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | ||
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | ||
RUN apt-get -y update | ||
RUN apt-get install -y google-chrome-stable && rm -rf /var/lib/apt/lists/* | ||
|
||
# set the working directory to /src | ||
WORKDIR /src | ||
|
||
# upgrade pip | ||
RUN python -m pip install --no-cache-dir --upgrade pip | ||
|
||
# install dependencies | ||
COPY ./requirements.txt /src | ||
RUN python -m pip install --no-cache-dir -r requirements.txt | ||
|
||
# copy the current directory contents into the image | ||
COPY . /src | ||
|
||
# set display port to avoid crash | ||
ENV DISPLAY=:99 | ||
|
||
# start Xvfb | ||
CMD Xvfb :99 -screen 0 1920x1080x16 | ||
|
||
ENTRYPOINT ["python"] |
Oops, something went wrong.