SuperKartFrontend / Dockerfile
johnny-five-c's picture
Upload folder using huggingface_hub
1f11af5 verified
Raw
History Blame Contribute Delete
577 Bytes
# Use a minimal base image with Python 3.11 installed
FROM python:3.11-slim
# Set the working directory inside the container
WORKDIR /app
# Copy all files from the current directory to the container's /app directory
COPY . .
# Upgrade pip for compatibility
RUN python -m pip install --upgrade pip
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Run the Streamlit app on port 8501, accessible externally
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]