summaryrefslogtreecommitdiff
path: root/OpenSSL/3.4.0-minimal/Dockerfile
blob: fddb9e2425e6bf26798c4984afcf9abd680cfe73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM alpine as base
RUN apk update && apk add \
	git \
	make \
	gcc \
	musl-dev \
	linux-headers \
	perl
ARG PREFIX=/opt/spm/openssl-3.4.0
RUN git clone --depth 1 -b openssl-3.4.0 https://github.com/openssl/openssl.git
WORKDIR /openssl
RUN ./config -ffunction-sections -fdata-sections \
	--prefix=$PREFIX --openssldir=$PREFIX \
	no-shared no-ssl2 no-ssl3 no-comp no-idea no-asm no-dtls no-dtls1 \
	no-threads -no-nextprotoneg no-psk no-srp no-ec2m \
	no-weak-ssl-ciphers
RUN make -j$(nproc --all)
RUN make test
RUN make install
FROM scratch
COPY --from=base /opt/spm/openssl-3.4.0 /opt/spm/openssl-3.4.0