Skip to content

Commit 0af4ece

Browse files
committed
Remove venv from datascience image
1 parent acee11a commit 0af4ece

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

python/datascience/Dockerfile.datascience

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@ RUN if [ "$(printf '%s\n' "$PYTHON_VERSION" "3.11" | sort -V | head -n1)" = "3.1
1919
# Combine all RUN commands into one to minimize the number of layers
2020
RUN apt-get update \
2121
&& apt-get install -y --no-install-recommends gcc \
22+
&& pip install --upgrade pip setuptools wheel \
2223
&& pip install --no-cache-dir -r requirements.txt -c https://tk.deepnote.com/constraints${PYTHON_VERSION}.txt \
2324
&& apt-get purge -y gcc \
2425
&& apt-get autoremove -y \
2526
&& apt-get clean \
2627
&& rm -rf /var/lib/apt/lists/* /root/.cache
27-
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)