Spaces:
Build error
Build error
Download Dockerfile from SURESHBEEKHANI/Insurance_CategorY_Predictor: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/SURESHBEEKHANI/Insurance_CategorY_Predictor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SURESHBEEKHANI/Insurance_CategorY_Predictor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SURESHBEEKHANI/Insurance_CategorY_Predictor/resolve/main/Dockerfile
550 Bytes
| FROM python:3.12.7-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file into the container | |
| COPY requirements.txt /app/requirements.txt | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code into the container | |
| COPY . /app | |
| # Expose ports for FastAPI and Streamlit | |
| EXPOSE 8000 8501 | |
| # Command to run both FastAPI and Streamlit | |
| CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port 8000 & streamlit run frontend.py --server.port 8501 --server.address 0.0.0.0"] | |