Skip to content

Commit

Permalink
Merge pull request #305 from stolendog/297_docker_install_dependecies
Browse files Browse the repository at this point in the history
install python dependencies on docker image
  • Loading branch information
aleksandr-smechov authored May 23, 2024
2 parents fc049e1 + b833041 commit befb42c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit befb42c

Please sign in to comment.