Skip to content

Commit acee11a

Browse files
committed
Create venv on the end datascience image
1 parent 94a5460 commit acee11a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/datascience/Dockerfile.datascience

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ RUN apt-get update \
2525
&& apt-get clean \
2626
&& rm -rf /var/lib/apt/lists/* /root/.cache
2727

28+
# We create the virtual environment in the home directory in the Dockerfile
29+
# for performance improvement.
30+
RUN python -m venv --system-site-packages ~/venv
31+
RUN . ~/venv/bin/activate && pip install --upgrade pip setuptools

0 commit comments

Comments
 (0)