-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile.base
More file actions
36 lines (30 loc) · 906 Bytes
/
Dockerfile.base
File metadata and controls
36 lines (30 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM alpine:3.23.4
RUN apk --update-cache upgrade && \
apk add \
bash \
bind-tools \
coreutils \
'curl>=7.58.0-r0' \
'ncurses>=6.0_p20170930-r0' \
procps \
tzdata \
&& \
rm -f /var/cache/apk/*
# This variable is set in ci/build.
ARG TARBALL
# Use the statically-compiled version of openssl from
# https://testssl.sh/
RUN cd /tmp/ && \
curl -L -O https://testssl.sh/${TARBALL} && \
tar xvzf ${TARBALL} && \
mv bin/openssl.Linux.x86_64.static bin/openssl.Linux.x86_64 && \
cp -f bin/openssl.Linux.x86_64 /usr/bin/openssl && \
rm -f ${TARBALL} && \
rm -fr bin/
# Install RFC mapping file.
RUN curl -L -o /etc/mapping-rfc.txt https://testssl.sh/mapping-rfc.txt
ENTRYPOINT ["/testssl.sh"]
CMD ["--help"]
# testssl.sh creates files here, so use a volume to
# allow to run container with read-only root filesystem.
VOLUME /tmp