diff --git a/CHANGELOG.md b/CHANGELOG.md index 3db4d7e..c782c0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog ## [Unreleased] +### Changed +- [#163](https://github.com/devatherock/artifactory-badge/issues/163): Used distroless base docker image + +## [1.1.0] - 2022-05-12 ### Added - Support for reading logback config from local or remote file diff --git a/Dockerfile b/Dockerfile index 991f46a..aac1c16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,14 +7,12 @@ RUN native-image -cp build/libs/*-all.jar -FROM frolvlad/alpine-glibc:alpine-3.12 +FROM gcr.io/distroless/base-debian11 LABEL maintainer="devatherock@gmail.com" -LABEL io.github.devatherock.version="1.0.0" +LABEL io.github.devatherock.version="1.2.0" EXPOSE 8080 -RUN apk update \ - && apk add --no-cache libstdc++ dumb-init COPY --from=graalvm /home/app/micronaut-graal-app/micronautgraalapp /micronaut-graal-app/micronautgraalapp -ENTRYPOINT ["dumb-init", "--", "/micronaut-graal-app/micronautgraalapp"] +ENTRYPOINT ["/micronaut-graal-app/micronautgraalapp"] diff --git a/README.md b/README.md index e700b22..ecd0aec 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ docker run --rm \ -p 8080:8080 \ -e ARTIFACTORY_URL=https://some/url \ -e ARTIFACTORY_API_KEY=xyz \ - devatherock/artifactory-badge:1.0.0 + devatherock/artifactory-badge:1.1.0 ``` ### Configurable properties diff --git a/build.gradle b/build.gradle index 5be3337..1bab146 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ plugins { id 'org.owasp.dependencycheck' version '7.1.0.1' } -version "1.0.0" +version "1.2.0" group "io.github.devatherock" sourceCompatibility = '11' targetCompatibility = '11' diff --git a/src/main/resources/META-INF/native-image/io.github.devatherock/artifactory-badge/native-image.properties b/src/main/resources/META-INF/native-image/io.github.devatherock/artifactory-badge/native-image.properties index 0b71c37..6cafd9b 100644 --- a/src/main/resources/META-INF/native-image/io.github.devatherock/artifactory-badge/native-image.properties +++ b/src/main/resources/META-INF/native-image/io.github.devatherock/artifactory-badge/native-image.properties @@ -6,4 +6,5 @@ Args = -H:ResourceConfigurationFiles=build/generated/resources/graalvm/resource- --initialize-at-build-time=sun.instrument.InstrumentationImpl \ --initialize-at-run-time=io.micronaut.aop.internal.intercepted.KotlinInterceptedMethod \ -H:EnableURLProtocols=http,https \ + -H:+StaticExecutableWithDynamicLibC \ -H:Class=io.github.devatherock.Application