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)?
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
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/*
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/*