CoolFace
Apppublic

csvaldellon/qa_model

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1FROM python:3.8.12-slim-buster2 3# Install wget and required pip libraries4RUN apt-get update &&\5    apt-get install -y --no-install-recommends wget &&\6    rm -rf /var/lib/apt/lists/* &&\7    pip install --no-cache-dir transformers[torch] uvicorn fastapi8 9# adds the script defining the QA model to docker10COPY download_model.sh .11 12# Downloads the required QA model13RUN bash download_model.sh14 15# copies the app files to the docker image16COPY app/ app/17 18# runs our application at the start of the docker image19# CMD ["python", "app/main.py"]20CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]21