Skip to content

Commit 558d6ec

Browse files
committed
Ubuntu 18.04: Switch from Python 2.7 to Python 3.6
Because in Funq we (finally) dropped support for Python 2. Using Python 3.6.9 from the official Ubuntu repos now. In addition, no longer installing Python packages we actually don't need in this image anymore.
1 parent 1738483 commit 558d6ec

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

ubuntu-18.04/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ RUN apt-get update -q && apt-get -y -q install --no-install-recommends \
2323
libqt5sql5-sqlite \
2424
make \
2525
openssl \
26-
python \
27-
python-pip \
28-
python-setuptools \
29-
python-wheel \
26+
python3 \
27+
python3-pip \
28+
python3-setuptools \
29+
python3-wheel \
3030
qt5-default \
3131
qtdeclarative5-dev \
3232
qtdeclarative5-qtquick2-plugin \
@@ -38,10 +38,9 @@ RUN apt-get update -q && apt-get -y -q install --no-install-recommends \
3838
zlib1g-dev \
3939
&& rm -rf /var/lib/apt/lists/*
4040

41-
# Install Python packages
42-
RUN pip install \
43-
"future==0.17.1" \
44-
"flake8==3.7.7"
41+
# Set Python3 as default Python version
42+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 100
43+
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 100
4544

4645
# LibrePCB's unittests expect that there is a USERNAME environment variable
4746
ENV USERNAME="root"

0 commit comments

Comments
 (0)