Skip to content

Commit

Permalink
Update base image to add multi-arch support
Browse files Browse the repository at this point in the history
Signed-off-by: Prashant-Jagtap <Prashant.Jagtap@ibm.com>
  • Loading branch information
Prashant-Jagtap authored and parrt committed May 10, 2023
1 parent bd09a46 commit 2c07aa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
FROM adoptopenjdk/openjdk11:alpine AS builder
FROM eclipse-temurin:11 AS builder

WORKDIR /opt/antlr4

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 \
&& mvn clean --projects tool --also-make \
&& 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
Expand Down
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2c07aa8

Please sign in to comment.