Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 46c62a6

Browse files
authored
Separate Py3 package installations in Conda (#2100)
* Separate Py3 package installation.
1 parent 2556c91 commit 46c62a6

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

containers/base/Dockerfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,6 @@ RUN echo "deb-src http://ftp.us.debian.org/debian testing main" >> /etc/apt/sour
166166
tornado==4.5.1 \
167167
widgetsnbextension==3.2.1 \
168168
xgboost==0.6a2 && \
169-
# Install Python3 packages that aren't available or up-to-date in Conda.
170-
source activate $PYTHON_3_ENV && \
171-
pip install --quiet -U --upgrade-strategy only-if-needed --no-cache-dir \
172-
apache-airflow==1.9.0 \
173-
bs4==0.0.1 \
174-
ggplot==0.6.8 \
175-
google-cloud-monitoring==0.28.0 \
176-
lime==0.1.1.23 \
177-
protobuf==3.6.1 \
178-
tensorflow==1.8.0 && \
179169
# Make pip3 a copy of pip for the Python 3 environment.
180170
cp /usr/local/envs/py3env/bin/pip /usr/local/envs/py3env/bin/pip3 && \
181171
source deactivate && \
@@ -230,6 +220,18 @@ RUN echo "deb-src http://ftp.us.debian.org/debian testing main" >> /etc/apt/sour
230220
rm -rf /usr/share/locale/* && \
231221
rm -rf /usr/share/i18n/locales/*
232222

223+
# Install Python3 packages that aren't available or up-to-date in Conda.
224+
# For some reasons, merging it with the commands above does not work so creating a separate one.
225+
RUN source activate $PYTHON_3_ENV && \
226+
pip install --quiet -U --upgrade-strategy only-if-needed --no-cache-dir \
227+
apache-airflow==1.9.0 \
228+
bs4==0.0.1 \
229+
ggplot==0.6.8 \
230+
google-cloud-monitoring==0.28.0 \
231+
lime==0.1.1.23 \
232+
protobuf==3.6.1 \
233+
tensorflow==1.8.0
234+
233235
ENV LANG en_US.UTF-8
234236

235237
# Copy local configuration files

0 commit comments

Comments
 (0)