Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -12,7 +12,14 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
|
|
| 12 |
gnupg2 \
|
| 13 |
wget
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
WORKDIR /code
|
| 18 |
|
|
|
|
| 12 |
gnupg2 \
|
| 13 |
wget
|
| 14 |
|
| 15 |
+
# Add PPA for gcc-11, update packages, install gcc-11, g++-11, update pip and setuptools, install build-essential
|
| 16 |
+
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
|
| 17 |
+
RUN apt update
|
| 18 |
+
RUN apt install gcc-11 g++-11
|
| 19 |
+
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 60 --slave /usr/bin/g++ g++ /usr/bin/g++-11
|
| 20 |
+
RUN pip install --upgrade pip
|
| 21 |
+
RUN pip install --upgrade setuptools wheel
|
| 22 |
+
RUN apt-get install build-essential
|
| 23 |
|
| 24 |
WORKDIR /code
|
| 25 |
|