Spaces:
Sleeping
Sleeping
Download Dockerfile from randomshit11/frrf: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/randomshit11/frrf/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/randomshit11/frrf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/randomshit11/frrf/resolve/main/Dockerfile
576 Bytes
| FROM python:3.8 | |
| # Expose port 8501 | |
| EXPOSE 8501 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements file | |
| COPY requirements.txt ./requirements.txt | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg libsm6 libxext6 | |
| # Install Python dependencies | |
| RUN pip3 install -r requirements.txt | |
| # Copy the application code | |
| COPY . . | |
| # Set the PORT environment variable | |
| ENV PORT=8501 | |
| # Set the MPLCONFIGDIR environment variable | |
| ENV MPLCONFIGDIR=/tmp/matplotlib-cache | |
| # Command to run the Streamlit app | |
| CMD streamlit run --server.port $PORT app.py | |