LLM_Ariphes / Dockerfile
Euryeth's picture
Update Dockerfile
4a92b92 verified
raw
history blame
380 Bytes
FROM python:3.9
# Create writable cache with proper permissions
RUN mkdir -p /tmp/cache && chmod 777 /tmp/cache
# Set environment variables at OS level
ENV TRANSFORMERS_CACHE=/tmp/cache
ENV HF_HOME=/tmp/cache
ENV HF_DATASETS_CACHE=/tmp/cache
ENV HUGGINGFACE_HUB_CACHE=/tmp/cache
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "api.py"]