From 9d613e47d9a7632c601eb6c0576309fb476263e8 Mon Sep 17 00:00:00 2001 From: Gabor Gyimesi Date: Fri, 6 Dec 2024 16:36:20 +0100 Subject: [PATCH] MINIFICPP-2497 Remove alpine-conf package from docker image --- docker/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 68e4645a15..a7e5a21224 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -93,12 +93,13 @@ ENV MINIFI_VERSIONED_HOME ${MINIFI_BASE_DIR}/nifi-minifi-cpp-${MINIFI_VERSION} RUN addgroup -g ${GID} ${USER} && adduser -u ${UID} -D -G ${USER} -g "" ${USER} && \ install -d -o ${USER} -g ${USER} ${MINIFI_BASE_DIR} && ln -s ${MINIFI_VERSIONED_HOME} ${MINIFI_HOME} && \ apk add --no-cache libstdc++ tzdata alpine-conf && \ - if echo "$MINIFI_OPTIONS" | grep -q "ENABLE_PYTHON_SCRIPTING=ON"; then apk add --no-cache python3; fi + if echo "$MINIFI_OPTIONS" | grep -q "ENABLE_PYTHON_SCRIPTING=ON"; then apk add --no-cache python3; fi && \ + setup-timezone -z UTC && \ + apk del alpine-conf # Copy built minifi distribution from builder COPY --from=build --chown=${USER}:${USER} ${MINIFI_VERSIONED_HOME} ${MINIFI_HOME} COPY --from=build --chown=${USER}:${USER} ${MINIFI_BASE_DIR}/docker/conf/minifi-log.properties ${MINIFI_HOME}/conf/minifi-log.properties -RUN setup-timezone -z UTC USER ${USER} WORKDIR ${MINIFI_HOME}