From 721076ef5530fc5851ea6c64614d705c1a98a5c5 Mon Sep 17 00:00:00 2001 From: Francesco Grazioso Date: Fri, 12 Apr 2024 12:23:42 +0200 Subject: [PATCH] add dockerfile and change base domain to current one --- Src/Api/site.py | 2 +- config.json | 2 +- dockerfile | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 dockerfile diff --git a/Src/Api/site.py b/Src/Api/site.py index 27caa96..c864fca 100644 --- a/Src/Api/site.py +++ b/Src/Api/site.py @@ -143,8 +143,8 @@ def test_site(domain: str) -> str: str: The response text if successful, otherwise None. """ - console.print("[cyan]Make request site [white]...") site_url = f"https://streamingcommunity.{domain}" + console.print(f"[cyan]Make request site to {site_url} [white]...") try: response = requests.get(site_url, headers={'user-agent': get_headers()}) diff --git a/config.json b/config.json index cdf3417..99bf9ab 100644 --- a/config.json +++ b/config.json @@ -16,7 +16,7 @@ }, "SITE": { "streaming_site_name": "streamingcommunity", - "streaming_domain": "forum", + "streaming_domain": "africa", "anime_site_name": "animeunity", "anime_domain": "to" }, diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..6f9389d --- /dev/null +++ b/dockerfile @@ -0,0 +1,11 @@ +FROM python:3.11-slim + +COPY . /app +WORKDIR /app + +ENV TEMP /tmp +RUN mkdir -p $TEMP + +RUN pip install --no-cache-dir -r requirements.txt + +CMD ["python", "run.py"] \ No newline at end of file