Spaces:
Running
Running
File size: 505 Bytes
3a9cb94 ad821ef 2d7f38d 3a9cb94 2d7f38d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.9
WORKDIR /code
RUN --mount=type=secret,id=huggingface_token,mode=0444,required=true \
git init && \
git remote add origin $(cat /run/secrets/huggingface_token)
RUN --mount=type=secret,id=rapid_key,mode=0444,required=true \
git init && \
git remote add origin $(cat /run/secrets/rapid_key)
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"] |