Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

update dockerfile to use python3.7 instead of 2.7 #1682

Benjamin King6786ce112a08
diff --git a/Dockerfile b/Dockerfile
index 34f908bca..9afdb6334 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,22 +3,35 @@ FROM centos:7
RUN yum install -y epel-release && \
yum install -y https://centos7.iuscommunity.org/ius-release.rpm && \
yum install -y \
- "@Development Tools" \
- cairo-devel \
- firefox \
- giflib-devel \
- httpd \
- libjpeg-turbo-devel \
- java-1.8.0-openjdk \
- python27 \
- python2-pip \
- python27-virtualenv \
- git \
- stow \
- which \
- xorg-x11-server-Xvfb \
- xz
-
+ "@Development Tools" \
+ cairo-devel \
+ firefox \
+ giflib-devel \
+ httpd \
+ libjpeg-turbo-devel \
+ java-1.8.0-openjdk \
+ git \
+ stow \
+ which \
+ xorg-x11-server-Xvfb \
+ wget \
+ libffi-devel \
+ openssl-devel \
+ xz
+RUN cd /usr/src && \
+ wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz && \
+ tar xzf Python-3.7.4.tgz && \
+ rm Python-3.7.4.tgz && \
+ cd Python-3.7.4 && \
+ ./configure --enable-optimizations && \
+ make altinstall && \
+ ln -sf /usr/local/bin/python3.7 /usr/local/bin/python3 && \
+ python3 -V && \
+ curl -O https://bootstrap.pypa.io/get-pip.py && \
+ python3 get-pip.py && \
+ python3 -m ensurepip && \
+ pip install virtualenv && \
+ pip --version
RUN mkdir -p /usr/local/stow
RUN cd /usr/local/stow && \
curl -O https://nodejs.org/dist/v8.11.2/node-v8.11.2-linux-x64.tar.xz && \
@@ -26,7 +39,7 @@ RUN cd /usr/local/stow && \
rm -f /usr/local/stow/node/node-v8.11.2-linux-x64.tar.xz && \
rm -f /usr/local/stow/node-v8.11.2-linux-x64/{LICENSE,*.md} && \
stow -S node-v8.11.2-linux-x64
-RUN ln -s /usr/bin/virtualenv-2.7 /usr/bin/virtualenv
+RUN ln -s /usr/bin/virtualenv-3.7.4 /usr/bin/virtualenv
WORKDIR /build
# Only what is needed to run the development server and run the Selenium tests