FallbackLLM / Dockerfile
MasteredUltraInstinct's picture
Update Dockerfile
75ef31c verified
raw
history blame contribute delete
385 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# πŸ‘‡ Create custom cache directory with proper permissions
RUN mkdir -p /app/cache
# πŸ‘‡ Set TRANSFORMERS_CACHE permanently
ENV TRANSFORMERS_CACHE=/app/cache
COPY llm_service.py .
EXPOSE 7860
CMD ["uvicorn", "llm_service:app", "--host", "0.0.0.0", "--port", "7860"]