File size: 444 Bytes
afb39a0 4e78c52 a138f33 afb39a0 a138f33 afb39a0 4e78c52 afb39a0 a138f33 afb39a0 4e78c52 a138f33 afb39a0 6235c78 afb39a0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Use a lightweight Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy requirements first (for caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Expose port 7860 for Streamlit
EXPOSE 7860
# Run the Streamlit app on 0.0.0.0:7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|