Adrek28/Creating_Spaces_and_Adding_Secrets_in_Hugging_Face
0
1# Use a minimal base image with Python 3.9 installed2FROM python:3.9-slim3 4# Set the working directory inside the container to /app5WORKDIR /app6 7# Copy all files from the current directory on the host to the container's /app directory8COPY . .9 10# Install Python dependencies listed in requirements.txt11RUN pip3 install -r requirements.txt12 13# Define the command to run the Streamlit app on port 8501 and make it accessible externally14CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]15 