diff --git a/Dockerfile b/Dockerfile index ddd7398..f693c5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,6 @@ WORKDIR /app # Copy application code COPY src/ ./src/ -COPY env ./src/.env # Install Python dependencies RUN pip install --no-cache-dir -r src/requirements.txt diff --git a/Dockerfile_HF b/Dockerfile_HF new file mode 100644 index 0000000..50ecba4 --- /dev/null +++ b/Dockerfile_HF @@ -0,0 +1,20 @@ +FROM python:3.11-slim + +WORKDIR /app + +# Install system dependencies including FFmpeg +RUN apt-get update && apt-get install -y \ + ffmpeg \ + curl \ + git \ + && rm -rf /var/lib/apt/lists/* + +# Install Streamlink +RUN pip install --no-cache-dir streamlink + +RUN git clone https://git.fiorinis.com/Home/streamlink-server.git . + +RUN pip install --no-cache-dir -r ./src/requirements.txt + +EXPOSE 7860 +CMD ["uvicorn", "run:main_app", "--host", "0.0.0.0", "--reload", "--port", "7860", "--workers", "4"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index e5ae28b..84aa1ea 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -30,6 +30,8 @@ services: restart: unless-stopped environment: - TZ=UTC + - AUTH_USERNAME=12345678 + - AUTH_PASSWORD=87654321 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:6090/channels?username=65128929&password=34243636"] interval: 30s diff --git a/env b/env deleted file mode 100644 index 8bdd2cf..0000000 --- a/env +++ /dev/null @@ -1,2 +0,0 @@ -AUTH_USERNAME=65128929 -AUTH_PASSWORD=34243636 \ No newline at end of file