Spaces:
Build error
Build error
File size: 515 Bytes
91a9f3f e612579 1b4bab9 91a9f3f 1b4bab9 91a9f3f e612579 1b4bab9 e612579 91a9f3f 1b4bab9 e612579 1b4bab9 91a9f3f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.9-slim
# Set Hugging Face cache to a writable directory
ENV TRANSFORMERS_CACHE=/tmp/hf
ENV HF_HOME=/tmp/hf
# Install build essentials and clean up
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY main.py main.py
COPY app.py app.py
CMD ["python", "main.py"]
|