Skip to content

Commit e2eea9d

Browse files
committed
Updated java11 Docker image
1 parent 6abec50 commit e2eea9d

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

java11/Dockerfile

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
22

33
ENV DEBIAN_FRONTEND=noninteractive \
4-
JAVA_HOME=/usr/lib/jvm/zulu-11-amd64
4+
JAVA_HOME=/usr/lib/jvm/zulu11
55

66
# python3 (and set it as default)
77
RUN apt-get update -qq && \
88
apt-get install -qy software-properties-common curl vim && \
99
add-apt-repository -y ppa:deadsnakes/ppa && \
1010
apt-get update -qq && \
11-
apt-get install -y python3.9 python3.9-dev libpython3.9-dev && \
11+
apt-get install -y python3.12 python3.12-dev libpython3.12-dev && \
1212
curl -s -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
13-
apt-get install -y python3.9-distutils && \
14-
python3.9 /tmp/get-pip.py && rm /tmp/get-pip.py && \
15-
update-alternatives --install /usr/bin/python python /usr/bin/python3.9 3 && \
16-
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 3
13+
apt-get install -y python3.12-distutils && \
14+
python3.12 /tmp/get-pip.py && rm /tmp/get-pip.py && \
15+
update-alternatives --install /usr/bin/python python /usr/bin/python3.12 3 && \
16+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 3
1717

1818
# Maven
19-
RUN curl -sSL -o - https://downloads.apache.org/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz \
19+
RUN curl -k -sSL -o - https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz \
2020
| tar xzf - -C /usr/local/ \
21-
&& ln -sf /usr/local/apache-maven-3.8.1/bin/mvn /usr/bin/mvn
21+
&& ln -sf /usr/local/apache-maven-3.9.4/bin/mvn /usr/bin/mvn
2222

2323
# Zulu Java 11
2424
# https://docs.azul.com/zulu/zuludocs/#ZuluUserGuide/InstallingZulu/InstallOnLinuxUsingAPTRepository.htm
2525
RUN apt-get update -qq && \
26-
apt-get install -y curl python apt-transport-https && \
27-
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9 && \
28-
echo "deb http://repos.azulsystems.com/ubuntu stable main" > /etc/apt/sources.list.d/zulu.list && \
29-
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
26+
apt-get install -y curl apt-transport-https && \
27+
curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg && \
28+
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" > /etc/apt/sources.list.d/zulu.list && \
3029
apt-get update -qq && \
31-
apt-get install -y zulu-11
30+
apt-get install -y zulu11-jdk
3231

3332
# Install lein
3433
RUN curl -sSL https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o /usr/bin/lein && \

0 commit comments

Comments
 (0)