Created
June 27, 2024 03:03
-
-
Save renuka-fernando/6260d9e06f6ec4f3e7d39f4da400d5ef to your computer and use it in GitHub Desktop.
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
diff --git a/enforcer-parent/enforcer/src/main/resources/Dockerfile b/enforcer-parent/enforcer/src/main/resources/Dockerfile | |
index 5cff3172d..b085e4958 100644 | |
--- a/enforcer-parent/enforcer/src/main/resources/Dockerfile | |
+++ b/enforcer-parent/enforcer/src/main/resources/Dockerfile | |
@@ -14,14 +14,9 @@ | |
# limitations under the License. | |
# ----------------------------------------------------------------------- | |
-FROM adoptopenjdk/openjdk11:jre-11.0.23_9-alpine | |
-LABEL maintainer="WSO2 Docker Maintainers <wso2.com>" | |
- | |
-RUN apk update && apk upgrade --no-cache | |
+FROM adoptopenjdk/openjdk11:jre-11.0.16.1_1 | |
-LABEL maintainer="WSO2 Docker Maintainers <[email protected]>" | |
- | |
-ENV LANG=C.UTF-8 | |
+LABEL maintainer="WSO2 Docker Maintainers <wso2.com>" | |
ARG MG_USER=wso2 | |
ARG MG_USER_ID=10500 | |
@@ -54,10 +49,10 @@ ARG MOTD="\n\ | |
Read more about Apache License, Version 2.0 here @ http://www.apache.org/licenses/LICENSE-2.0.\n" | |
RUN \ | |
- addgroup -S -g ${MG_USER_GROUP_ID} ${MG_USER_GROUP} \ | |
- && adduser -S -u ${MG_USER_ID} -h ${MG_USER_HOME} -G ${MG_USER_GROUP} ${MG_USER} \ | |
+ groupadd --system -g ${MG_USER_GROUP_ID} ${MG_USER_GROUP} \ | |
+ && useradd --system --create-home --home-dir ${MG_USER_HOME} --no-log-init -g ${MG_USER_GROUP_ID} -u ${MG_USER_ID} ${MG_USER} \ | |
&& mkdir ${MG_USER_HOME}/lib && mkdir -p ${MG_USER_HOME}/logs \ | |
- && chown ${MG_USER}:${MG_USER_GROUP} -R ${MG_USER_HOME} \ | |
+ && chown -R ${MG_USER}:${MG_USER_GROUP} ${MG_USER_HOME} \ | |
&& echo '[ ! -z "${TERM}" -a -r /etc/motd ] && cat /etc/motd' >> /etc/bash.bashrc; echo "${MOTD}" > /etc/motd | |
COPY maven/grpc_health_probe-linux-amd64 ${GRPC_HEALTH_PROBE_PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment