koyu008's picture
Update Dockerfile
e879b18 verified
raw
history blame
366 Bytes
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"]