Download Dockerfile from Zasha1/SalesAI: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/spaces/Zasha1/SalesAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Zasha1/SalesAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Zasha1/SalesAI/resolve/main/Dockerfile
923 Bytes
| # Use the official Python image as the base image | |
| FROM python:3.9-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libopus0 \ | |
| libgstreamer1.0-0 \ | |
| gstreamer1.0-plugins-base \ | |
| gstreamer1.0-plugins-good \ | |
| gstreamer1.0-plugins-bad \ | |
| gstreamer1.0-plugins-ugly \ | |
| gstreamer1.0-libav \ | |
| gstreamer1.0-doc \ | |
| gstreamer1.0-tools \ | |
| libgstreamer-plugins-base1.0-dev \ | |
| libssl-dev \ | |
| libffi-dev \ | |
| && apt-get clean | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy the requirements file into the container | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code into the container | |
| COPY . . | |
| # Expose the Streamlit default port | |
| EXPOSE 8501 | |
| # Run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] |