fclip / Dockerfile
pediot's picture
first commit
88e0bae
raw
history blame contribute delete
319 Bytes
FROM python:3.9
WORKDIR /app
ENV HF_HOME=/app/hf_cache
ENV HF_TOKEN=${HF_TOKEN}
RUN mkdir -p /app/hf_cache && chmod 777 /app/hf_cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]