MAntrA / Dockerfile
Man0707's picture
Update Dockerfile
da4d8e0 verified
raw
history blame contribute delete
450 Bytes
# 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"]