From a697edfd44b6d8fdbfc935ad04533de5627022ab Mon Sep 17 00:00:00 2001 From: Erik Martin-Dorel Date: Mon, 22 Feb 2021 20:15:54 +0100 Subject: [PATCH] fix: runtime error in Docker packaging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add missing Alpine package href: https://pkgs.alpinelinux.org/package/v3.7/main/x86_64/openssl * Avoid runtime errors: Error loading shared library libssl.so.1.0.0: No such file or directory (needed by /usr/bin/learn-ocaml) Error loading shared library libcrypto.so.1.0.0: No such file or directory (needed by /usr/bin/learn-ocaml) […] * Ensure this patch is future-proof (instead of adding "libssl1.0"), see: https://github.com/eclipse/mosquitto/issues/1711#issuecomment-637987176 --- Dockerfile | 4 ++-- Dockerfile.test-client | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e71e23173..05529e16f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN opam install . --destdir /home/opam/install-prefix --locked FROM alpine:3.7 as client RUN apk update \ - && apk add ncurses-libs libev dumb-init \ + && apk add ncurses-libs libev dumb-init openssl \ && addgroup learn-ocaml \ && adduser learn-ocaml -DG learn-ocaml @@ -53,7 +53,7 @@ LABEL org.opencontainers.image.vendor="The OCaml Software Foundation" FROM alpine:3.7 as program RUN apk update \ - && apk add ncurses-libs libev dumb-init git \ + && apk add ncurses-libs libev dumb-init git openssl \ && addgroup learn-ocaml \ && adduser learn-ocaml -DG learn-ocaml diff --git a/Dockerfile.test-client b/Dockerfile.test-client index 6e7480ef7..2d8a757da 100644 --- a/Dockerfile.test-client +++ b/Dockerfile.test-client @@ -51,7 +51,7 @@ LABEL org.label-schema.build-date="${BUILD_DATE}" \ org.label-schema.schema-version="1.0" RUN apk update \ - && apk add ncurses-libs libev dumb-init \ + && apk add ncurses-libs libev dumb-init openssl \ && addgroup learn-ocaml \ && adduser learn-ocaml -DG learn-ocaml