Art_Detection_API / Dockerfile
Yuuki0125's picture
Update Dockerfile
1dbbbda verified
raw
history blame contribute delete
385 Bytes
FROM python:3.10.9
ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache
ENV HF_HOME=/tmp/huggingface_cache
WORKDIR /code
RUN mkdir -p /tmp/huggingface_cache && chmod -R 777 /tmp/huggingface_cache
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]