Update base image to add multi-arch support

Signed-off-by: Prashant-Jagtap <Prashant.Jagtap@ibm.com>
This commit is contained in:
Prashant-Jagtap 2022-11-30 13:08:16 +05:30 committed by Terence Parr
parent bd09a4680a
commit 2c07aa87b2
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM adoptopenjdk/openjdk11:alpine AS builder
FROM eclipse-temurin:11 AS builder
WORKDIR /opt/antlr4
@ -6,7 +6,7 @@ ARG ANTLR_VERSION="4.12.0"
ARG MAVEN_OPTS="-Xmx1G"
RUN apk add --no-cache maven git \
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install maven git -y \
&& git clone https://github.com/antlr/antlr4.git \
&& cd antlr4 \
&& git checkout $ANTLR_VERSION \
@ -14,7 +14,7 @@ RUN apk add --no-cache maven git \
&& mvn -DskipTests install --projects tool --also-make \
&& mv ./tool/target/antlr4-*-complete.jar antlr4-tool.jar
FROM adoptopenjdk/openjdk11:alpine-jre
FROM eclipse-temurin:11-jre
ARG user=appuser
ARG group=appuser

View File

@ -4,8 +4,8 @@ This Docker image wraps current version of **ANTLR4** inclusive **Java runtime e
## Docker Image
The image uses the official [adoptopenjdk/openjdk11:alpine](https://hub.docker.com/r/adoptopenjdk/openjdk11/tags?page=1&name=alpine&ordering=-name) image
for building a distribution of ANTLR4 and [adoptopenjdk/openjdk11:alpine-jre](https://hub.docker.com/r/adoptopenjdk/openjdk11/tags?page=1&name=alpine-jre&ordering=-name) for runtime.
The image uses the official [eclipse-temurin:11](https://hub.docker.com/_/eclipse-temurin/tags?page=1&name=11&ordering=-name) image
for building a distribution of ANTLR4 and [eclipse-temurin:11-jre](https://hub.docker.com/_/eclipse-temurin/tags?page=1&name=11-jre&ordering=-name) for runtime.
## Build