Removed env file from dockerfile. Created dockerfile for HF installation
This commit is contained in:
@@ -14,7 +14,6 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Copy application code
|
# Copy application code
|
||||||
COPY src/ ./src/
|
COPY src/ ./src/
|
||||||
COPY env ./src/.env
|
|
||||||
|
|
||||||
# Install Python dependencies
|
# Install Python dependencies
|
||||||
RUN pip install --no-cache-dir -r src/requirements.txt
|
RUN pip install --no-cache-dir -r src/requirements.txt
|
||||||
|
|||||||
20
Dockerfile_HF
Normal file
20
Dockerfile_HF
Normal file
@@ -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"]
|
||||||
@@ -30,6 +30,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
|
- AUTH_USERNAME=12345678
|
||||||
|
- AUTH_PASSWORD=87654321
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:6090/channels?username=65128929&password=34243636"]
|
test: ["CMD", "curl", "-f", "http://localhost:6090/channels?username=65128929&password=34243636"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
Reference in New Issue
Block a user