File size: 450 Bytes
da4d8e0 e38c8a9 cac9233 da4d8e0 cac9233 da4d8e0 e38c8a9 da4d8e0 cac9233 da4d8e0 e38c8a9 cac9233 e38c8a9 cac9233 da4d8e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use lightweight Python image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements first (for better caching)
COPY requirements.txt .
# Install dependencies (super fast, no cache)
RUN pip install --no-cache-dir -r requirements.txt
# Copy your app code
COPY . .
# Expose Streamlit port
EXPOSE 8501
# Run the correct file name: app.py
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] |