mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-08 12:35:27 +00:00
add dockerfile and change base domain to current one
This commit is contained in:
parent
2939da93db
commit
721076ef55
@ -143,8 +143,8 @@ def test_site(domain: str) -> str:
|
|||||||
str: The response text if successful, otherwise None.
|
str: The response text if successful, otherwise None.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
console.print("[cyan]Make request site [white]...")
|
|
||||||
site_url = f"https://streamingcommunity.{domain}"
|
site_url = f"https://streamingcommunity.{domain}"
|
||||||
|
console.print(f"[cyan]Make request site to {site_url} [white]...")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.get(site_url, headers={'user-agent': get_headers()})
|
response = requests.get(site_url, headers={'user-agent': get_headers()})
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
},
|
},
|
||||||
"SITE": {
|
"SITE": {
|
||||||
"streaming_site_name": "streamingcommunity",
|
"streaming_site_name": "streamingcommunity",
|
||||||
"streaming_domain": "forum",
|
"streaming_domain": "africa",
|
||||||
"anime_site_name": "animeunity",
|
"anime_site_name": "animeunity",
|
||||||
"anime_domain": "to"
|
"anime_domain": "to"
|
||||||
},
|
},
|
||||||
|
11
dockerfile
Normal file
11
dockerfile
Normal file
@ -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"]
|
Loading…
x
Reference in New Issue
Block a user