| 1 |
FROM debian |
| 2 |
|
| 3 |
ENV OPENSSL_VER=1.1.1k |
| 4 |
ENV OPENSSL_ARCH=linux-generic64 |
| 5 |
|
| 6 |
RUN apt update -y && \ |
| 7 |
apt install -y --no-install-recommends libc6-dev automake gcc make curl ca-certificates && \ |
| 8 |
apt clean && \ |
| 9 |
rm -rf /var/lib/apt/lists/ && \ |
| 10 |
curl https://www.openssl.org/source/openssl-${OPENSSL_VER}.tar.gz \ |
| 11 |
| tar -xzC /tmp/ && \ |
| 12 |
cd /tmp/openssl-${OPENSSL_VER} && \ |
| 13 |
./Configure --prefix=/root/usr no-tests no-dso no-threads no-shared ${OPENSSL_ARCH} && \ |
| 14 |
make install_sw && \ |
| 15 |
rm -rf rm -rf /tmp/openssl-${OPENSSL_VER} /root/usr/bin/openssl /root/usr/bin/c_rehash && \ |
| 16 |
echo done |