-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change builder docker image to eclipse-temurin, add multi-platform do…
…cker build
- Loading branch information
1 parent
b148d7b
commit 9bdd288
Showing
3 changed files
with
134 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM arm64v8/gradle:7-jdk11 AS build | ||
|
||
COPY --chown=gradle:gradle . /build | ||
WORKDIR /build | ||
|
||
ARG VERSION_TAG | ||
RUN ./gradlew shadowJar \ | ||
--no-daemon \ | ||
-Prelease.forceVersion="${VERSION_TAG%-SNAPSHOT}" | ||
|
||
|
||
FROM openjdk:11-slim | ||
COPY --from=build /build/cli/build/libs/gtfs-validator-*-cli.jar /gtfs-validator-cli.jar | ||
WORKDIR / | ||
|
||
ARG VERSION_TAG | ||
ENV VERSION_TAG=$VERSION_TAG | ||
ENTRYPOINT [ "java", "-jar", "gtfs-validator-cli.jar" ] |