From b833041dc6bbda3951e83ee38a6246349a679597 Mon Sep 17 00:00:00 2001 From: Jonas Mardosas Date: Fri, 3 May 2024 17:20:27 +0200 Subject: [PATCH] remove hatch from docker image and put python dependencies in to docker image --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3dedb5f..348c278 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,10 +65,12 @@ RUN curl -L ${RELEASE_URL} | tar -zx -C /tmp \ && pip install /tmp/mpi4py-${MPI4PY_VERSION} \ && rm -rf /tmp/mpi4py* -RUN python -m pip install pip --upgrade \ - && python -m pip install hatch +RUN python -m pip install pip --upgrade WORKDIR /app + COPY . . -CMD ["hatch", "run", "runtime:launch"] +RUN pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com .[runtime] + +CMD ["uvicorn", "--host=0.0.0.0", "--port=5001", "src.wordcab_transcribe.main:app"]