CoolFace
Apppublic

zayanomar5/omar

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile33 linesDownload Raw Back to root
1# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker2# you will also find guides on how best to write your Dockerfile3 4FROM python:3.95 6WORKDIR /code7 8COPY ./requirements.txt /code/requirements.txt9 10RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt11 12RUN wget https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf/resolve/main/Phi-3-mini-4k-instruct-q4.gguf13 14Run git clone "https://huggingface.co/sentence-transformers/paraphrase-TinyBERT-L6-v2"15 16RUN mkdir /.cache17 18RUN chmod 777 /.cache19 20# RUN mkdir /.cache/huggingface21 22# RUN mkdir /.cache/huggingface/hub23 24# RUN mkdir /.cache/huggingface/hub/models--sentence-transformers--paraphrase-TinyBERT-L6-v225 26# RUN mkdir /.cache/huggingface/hub/models--sentence-transformers--paraphrase-TinyBERT-L6-v2/blobs27 28# RUN mkdir /.cache/huggingface/hub/models--sentence-transformers--paraphrase-TinyBERT-L6-v2/snapshots29 30COPY . .31 32CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]33