Spaces:
Sleeping
Sleeping
File size: 444 Bytes
1abd75c 499c49a 066b130 39150df 1abd75c |
1 2 3 4 5 6 7 8 9 10 11 12 |
FROM python:3.10.9
COPY . .
WORKDIR /
RUN cat /requirements.txt
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as a Bearer token for a curl request
ENV API_KEY=${API_KEY}
ENV TRANSFORMERS_CACHE=/transformers_cache
RUN mkdir -p /transformers_cache && chmod -R 777 /transformers_cache
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |