Spaces:
Build error
Build error
File size: 611 Bytes
f7097fa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use a Python base image
FROM python:3.9-slim-buster
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the saved model and key components
# You'll need to upload 'model_and_key_components.pkl' to the same directory as your app.py
COPY model_and_key_components.pkl .
# Copy the Streamlit application
COPY app.py .
# Expose the port Streamlit runs on
EXPOSE 7860
# Command to run the Streamlit application
CMD ["streamlit", "run", "app.py"] |