Spaces:
Runtime error
Runtime error
# Base image | |
FROM python:3.9-slim | |
# Set working directory | |
WORKDIR /app | |
# Copy requirements and install | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy app code | |
COPY . /app | |
# Create a writable cache directory | |
RUN mkdir -p /app/cache | |
ENV TRANSFORMERS_CACHE=/app/cache | |
# Run Streamlit | |
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |