I am trying to build an image with stunnel.
My base image OS is,
Linux 2338b11efbe1 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Installing libssl as below.
RUN apt-get -y update
RUN apt-get -y install libssl1.0.0 libssl-dev && \
ln -s libssl.so.1.0.0 libssl.so.10 && \
ln -s libcrypto.so.1.0.0 libcrypto.so.10
Below command lists the libs.
RUN ls libssl.so.* libcrypto.so*
Output ------>>>
libcrypto.so.10
libssl.so.10
Still, below command fails.
RUN ./stunnel
Error :-
./stunnel: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
Am i missing any other instruction here.
Here is my complete dockerfile.
from <BASE_IMAGE>
COPY stunnel .
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && \
apt-get -y install libssl1.0.0 libssl-dev && \
ln -s libssl.so.1.0.0 libssl.so.10 && \
ln -s libcrypto.so.1.0.0 libcrypto.so.10
RUN ./stunnel
stunnelbuilt against OpenSSL 1.1.0 or 1.0.2? They are not binary compatible, and you must have the correct one installed on the system. Also see How does the versioning scheme work? in the OpenSSL FAQ.stunnelbinary that I don't know how you created/downloaded.