Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Used distroless base docker image #166

Merged
merged 1 commit into from
May 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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