File size: 366 Bytes
ad51919 e879b18 4b02d4b e879b18 4b02d4b 9aefc78 ad51919 9aefc78 8adf7c2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
FROM python:3.9
WORKDIR /app
# Set cache dir and create it with proper permissions
ENV TRANSFORMERS_CACHE=/app/.hf_cache
RUN mkdir -p /app/.hf_cache && chmod -R 777 /app/.hf_cache
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|