Skip to content

Commit 0fd88ba

Browse files
Update to eclipse-temurin:21 and remove appuser (#4675)
It seems this appuser wasn't being used at all, and the USER line wasn't being set to enable it. In addition, the adduser utility didn't exist in the old or updated version of temurin. This seems simpler and works. Signed-off-by: James <[email protected]>
1 parent 811b7fd commit 0fd88ba

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

docker/Dockerfile

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11 AS builder
1+
FROM eclipse-temurin:21 AS builder
22

33
WORKDIR /opt/antlr4
44

@@ -14,23 +14,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install maven git -
1414
&& mvn -DskipTests install --projects tool --also-make \
1515
&& mv ./tool/target/antlr4-*-complete.jar antlr4-tool.jar
1616

17-
FROM eclipse-temurin:11-jre
18-
19-
ARG user=appuser
20-
ARG group=appuser
21-
ARG uid=1000
22-
ARG gid=1000
23-
24-
RUN adduser \
25-
--disabled-password \
26-
--gecos "" \
27-
--home "$(pwd)" \
28-
--no-create-home \
29-
--uid "${uid}" \
30-
"${user}"
17+
FROM eclipse-temurin:21-jre
3118

3219
COPY --from=builder /opt/antlr4/antlr4/antlr4-tool.jar /usr/local/lib/
3320
WORKDIR /work
3421
ENTRYPOINT ["java", "-Xmx500M", "-cp", "/usr/local/lib/antlr4-tool.jar", "org.antlr.v4.Tool"]
35-
36-

0 commit comments

Comments
 (0)