Spaces:
Sleeping
Sleeping
File size: 508 Bytes
5eb3040 ae59e9f 5eb3040 ae59e9f 5eb3040 ae59e9f 5eb3040 ae59e9f 5eb3040 ae59e9f 5eb3040 ae59e9f 5eb3040 ae59e9f 5eb3040 279451d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements first (for caching)
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . .
# Expose Streamlit default port
EXPOSE 8501
# Set environment variable for Streamlit
ENV STREAMLIT_SERVER_PORT=8501
ENV STREAMLIT_SERVER_HEADLESS=true
# Run Streamlit
CMD ["streamlit", "run", "src/streamlit_app.py"]
|