API / Dockerfile
Reem1's picture
Update Dockerfile
3f52be0 verified
raw
history blame
267 Bytes
FROM python:3.10
ENV TRANSFORMERS_CACHE=/app/cache
ENV HF_HOME=/app/cache
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/cache
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]