From 479dc52ec55fe9229bb5140f0b2ff845b4f51428 Mon Sep 17 00:00:00 2001 From: Bram de Kruijff Date: Mon, 5 Jun 2023 23:00:47 +0200 Subject: [PATCH] Install openssl package on distro image Added install of openssl package to the distro build stage when using (default) package manager apt. Solves ging/fiware-idm#314 --- extras/docker/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extras/docker/Dockerfile b/extras/docker/Dockerfile index 73919bd5..c3ae6d1b 100755 --- a/extras/docker/Dockerfile +++ b/extras/docker/Dockerfile @@ -206,6 +206,7 @@ ARG GITHUB_ACCOUNT ARG GITHUB_REPOSITORY ARG NODE_VERSION ARG HEADLESS +ARG PACKAGE_MANAGER WORKDIR /opt/fiware-idm COPY --from=builder /opt/fiware-idm . @@ -226,7 +227,10 @@ ENV IDM_HEADLESS=$HEADLESS # hadolint ignore=DL3018 RUN \ - if [ "${PACKAGE_MANAGER}" = "apk" ]; then \ + if [ "${PACKAGE_MANAGER}" = "apt" ]; then \ + apt-get update; \ + apt-get install -y --no-install-recommends openssl; \ + elif [ "${PACKAGE_MANAGER}" = "apk" ]; then \ apk add --no-cache ca-certificates bash openssl; \ fi