Docker-alpine: How to install OpenSSL 1.1.1?

Created on 11 Dec 2018  路  2Comments  路  Source: gliderlabs/docker-alpine

As part of our Dockerfile, we do the following to also get the latest OpenSSL:

RUN apk add --update openssl && \
    rm -rf /var/cache/apk/*

However this appears to fetch OpenSSL 1.0.2.
How do I modify this line to always fetch the latest for OpenSSL 1.1.1 (or newer of that branch)?

Most helpful comment

we will ship alpine 3.9 with openssl 1.1. Meanwhile you can use alpine:edge.
Dockerfile FROM alpine:edge RUN apk upgrade --update-cache --available && \ apk add openssl && \ rm -rf /var/cache/apk/*

All 2 comments

What version of alpine are you using? There are no openssl 1.1.1 packages for alpine 3.8 (the latest stable version as of this writing).

list of openssl packages for 3.8

If you really want to use the 1.1.1 for the edge version, you might want to

  • download and install the edge package (i don't recommend that) or
  • build it yourself and use that until a 1.1.1 version is released for 3.8 or version 3.9 is released or
  • contribute to the official repository with the 1.1.1 version for 3.8.

we will ship alpine 3.9 with openssl 1.1. Meanwhile you can use alpine:edge.
Dockerfile FROM alpine:edge RUN apk upgrade --update-cache --available && \ apk add openssl && \ rm -rf /var/cache/apk/*

Was this page helpful?
0 / 5 - 0 ratings