-
Notifications
You must be signed in to change notification settings - Fork 16
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
Update Dockerfile #445
Update Dockerfile #445
Conversation
|
||
ARG BUILD_ARGS | ||
|
||
COPY --chown=gradle:gradle . /home/gradle/project/ | ||
WORKDIR /home/gradle/project/ | ||
RUN --mount=type=cache,target=/home/gradle/.gradle/caches gradle build --no-daemon $BUILD_ARGS | ||
|
||
# -buster is required to have apt available | ||
FROM openjdk:17-slim-buster | ||
FROM eclipse-temurin:17-alpine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FROM eclipse-temurin:17-alpine | |
FROM eclipse-temurin:17-jre-alpine |
The runtime layer shouldn't need a full JDK. Reduces base image size from ~200 MB to ~50 MB.
RUN apk update \ | ||
&& apk add curl \ | ||
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN apk update \ | |
&& apk add curl \ | |
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists \ | |
RUN apk add --no-cache curl \ |
@@ -19,8 +18,8 @@ ENV EDC_BUILD_DATE=$EDC_BUILD_DATE_ARG | |||
ARG JVM_ARGS="" | |||
|
|||
# Install curl, then delete apt indexes to save image space |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Install curl, then delete apt indexes to save image space |
Closed in favor of #450 |
No description provided.