File size: 408 Bytes
f17b126 ffbd98b f17b126 ffbd98b fd47b01 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Use a standard Python image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application script
COPY app.py .
# Command to run the Streamlit app
# This is the industry standard for HF Streamlit Docker deployments
CMD ["streamlit", "run", "app.py"]
|