Spaces:
Sleeping
Sleeping
File size: 604 Bytes
7a394a4 be9cb33 d5d776e 033d63c 8ac6e22 a4123a3 8ac6e22 033d63c d5d776e be9cb33 033d63c be9cb33 033d63c 7706725 033d63c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.12-slim
WORKDIR /app
# Set environment variable for transformers cache, which helps prevent permission errors
ENV TRANSFORMERS_CACHE="/tmp/transformers_cache"
ENV NUMBA_CACHE_DIR="/tmp/numba_cache"
# Copy requirements first and install packages to leverage Docker caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy ALL your files (including run.sh, streamlit_app.py, etc.) into the container
COPY . .
# NOW that run.sh is copied, make it executable
RUN chmod +x ./run.sh
# This is the command that will run when the Space starts
CMD ["./run.sh"] |