Spaces:
Sleeping
Sleeping
| # Use an official Python runtime as a parent image | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy all files from the current directory on the host to the container's /app directory | |
| COPY . . | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Make port 7860 available to the world outside this container, HuggingFace expects web apps on this port | |
| EXPOSE 7860 | |
| # Run the Streamlit app when the container launches | |
| # The --server.address=0.0.0.0 flag is important to allow external connections | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |