Spaces:
Sleeping
Sleeping
Download Dockerfile from FarhanAK128/LipNet-Pytorch: direct link, hf CLI and curl.
- Browser
- Download file 867 Bytes
-
https://huggingface.co/spaces/FarhanAK128/LipNet-Pytorch/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/FarhanAK128/LipNet-Pytorch/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FarhanAK128/LipNet-Pytorch/resolve/main/Dockerfile
867 Bytes
| FROM python:3.13.5-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Disable Streamlit telemetry | |
| ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false | |
| # Copy project files (frontend.py and others) into container | |
| COPY pyproject.toml ./ | |
| COPY frontend.py ./ | |
| COPY model_utils/ ./model_utils/ | |
| COPY data/ ./data/ | |
| # Install Python dependencies | |
| RUN pip3 install . | |
| # Expose Streamlit's default port | |
| EXPOSE 8501 | |
| # Healthcheck for container monitoring | |
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 | |
| # Start the Streamlit app | |
| ENTRYPOINT ["streamlit", "run", "frontend.py", "--server.port=8501", "--server.address=0.0.0.0"] | |