Skip to content

Commit 680b6fd

Browse files
committed
Make use of venv
1 parent 63ebd4d commit 680b6fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/Dockerfile.dev

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ RUN if [ "$MACHINE_TYPE" = "gpu" ]; then export USE_CUDA=1; fi \
6565
&& git clone https://github.com/pytorch/serve.git \
6666
&& cd serve \
6767
&& git checkout ${BRANCH_NAME} \
68-
&& python$PYTHON_VERSION -m venv /home/venv \
69-
&& python -m pip install -U pip setuptools \
68+
&& python$PYTHON_VERSION -m venv /home/venv
69+
ENV PATH="/home/venv/bin:$PATH"
70+
WORKDIR serve
71+
RUN python -m pip install -U pip setuptools \
7072
&& if [ -z "$CUDA_VERSION" ]; then python ts_scripts/install_dependencies.py --environment=dev; else python ts_scripts/install_dependencies.py --environment=dev --cuda $CUDA_VERSION; fi \
7173
&& if [ "$BUILD_WITH_IPEX" = "true" ]; then python -m pip install --no-cache-dir intel_extension_for_pytorch==${IPEX_VERSION} -f ${IPEX_URL}; fi \
7274
&& python ts_scripts/install_from_src.py \

0 commit comments

Comments
 (0)