Spaces:
Build error
Build error
Create Dockerfile
Browse files1234567891011121314151617181920212223# Use the official Python image as a parent imageFROM python:3.11.3-slim
# Set the working directory within the containerWORKDIR /app
# Copy the requirements.txt file into the containerCOPY ./requirements.txt /app/requirements.txt
# Install the Python dependenciesRUN pip install -r /app/requirements.txt
# Copy your Streamlit application code into the containerCOPY ./app.py /app/app.py
# Copy the model and key components into the containerCOPY ./rf_model.pkl /app/rf_model.pkl
# Expose port 8000 for the FastAPI applicationEXPOSE 7860
# Command to start the Streamlit appCMD ["streamlit", "run", "--server.port", "7860", "app.py"]DockerfileAdded+23