Skip to content
Open
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
2 changes: 1 addition & 1 deletion java11/exec-jre/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM azul/zulu-openjdk-alpine:11.0.31-jre
FROM azul/zulu-openjdk-alpine:26.0.1-26.30-jre
EXPOSE 8080 5151
ARG userId=1000
ARG groupId=1000
VOLUME [ "/app" ]
RUN apk update; apk add bash

Check warning on line 6 in java11/exec-jre/Dockerfile

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove cache after installing packages or store it in a cache mount.

See more on https://sonarcloud.io/project/issues?id=ds2_docker-templates&issues=AZ-0oB1OtfkX5hG8QHwE&open=AZ-0oB1OtfkX5hG8QHwE&pullRequest=442
RUN addgroup -g ${groupId} jrunners

Check warning on line 7 in java11/exec-jre/Dockerfile

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Surround this variable with double quotes; otherwise, it can lead to unexpected behavior.

See more on https://sonarcloud.io/project/issues?id=ds2_docker-templates&issues=AZ-0oB1OtfkX5hG8QHwF&open=AZ-0oB1OtfkX5hG8QHwF&pullRequest=442
RUN adduser -s /bin/bash -G jrunners -D -u ${userId} jrun

Check warning on line 8 in java11/exec-jre/Dockerfile

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Surround this variable with double quotes; otherwise, it can lead to unexpected behavior.

See more on https://sonarcloud.io/project/issues?id=ds2_docker-templates&issues=AZ-0oB1OtfkX5hG8QHwG&open=AZ-0oB1OtfkX5hG8QHwG&pullRequest=442
COPY runJar.sh /runJar.sh
ENV JAVA_SYSTEM_PROPS "-Dmy.env=test -Dthis.Env=test"
ENTRYPOINT [ "/runJar.sh" ]
Expand Down
Loading