LLM_Model / Dockerfile
Shreekant Kalwar (Nokia)
docker test
6707a85
raw
history blame
345 Bytes
FROM python:3.13
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
# Create non-root user
RUN useradd -m -u 1000 appuser
# Hugging Face cache
ENV HF_HOME=/app/.cache
RUN mkdir -p /app/.cache && chown -R appuser:appuser /app
USER appuser
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]