🌐 AI搜索 & 代理 主页
Skip to content

Commit 0a4114b

Browse files
committed
upgrade to OpenJDK 20.0.2
1 parent 3b684a5 commit 0a4114b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
FROM openjdk:18.0.1-bullseye
1+
# See https://developers.redhat.com/articles/2022/09/16/updating-docker-hubs-openjdk-image for details
2+
# about the choice of base image here. [Manfred, 03 Sep 2023]
3+
FROM eclipse-temurin:20.0.2_9-jdk
4+
# Last version check on 03 Seo 2023.
5+
# Newer versions may be available at https://hub.docker.com/_/eclipse-temurin
6+
7+
# FROM openjdk:18.0.1-bullseye
28
# To check for newer JDK versions, see https://openjdk.java.net/, then
39
# https://hub.docker.com/_/openjdk. Last checked on 06 jun 2022. [Manfred, 06jun2022]
410

@@ -15,6 +21,10 @@ RUN apt update && \
1521
# net-tools: to support command such as 'arp', 'ifconfig', 'netstat', etc. (https://helpmanual.io/packages/apt/net-tools/) [Manfred, 26sep2021]
1622
# lsb-release: to support commmand 'lsb_release -a' [Manfred, 15jan2022]
1723

24+
RUN apt update && \
25+
apt install -y \
26+
git
27+
1828
# Create non-root user (zero trust principle, least privileged principle)
1929
RUN groupadd -g 1000 -r dev && \
2030
useradd -u 1000 -r -g dev -m -s $(which bash) dev

0 commit comments

Comments
 (0)