Repository navigation
Expand file tree
/
Copy pathDockerfile.ubuntu
More file actions
32 lines (26 loc) · 1.56 KB
/
Copy pathDockerfile.ubuntu
File metadata and controls
32 lines (26 loc) · 1.56 KB
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
FROM ubuntu:26.10@sha256:b5194b8e58989da0865ebc80078bf9f5f8742ec6a867c53f6ae699f6036756f7
WORKDIR /home/testssl
ARG BUILD_VERSION
ARG DEBIAN_FRONTEND=noninteractive
ARG ARCHIVE_URL=https://github.com/testssl/testssl.sh/archive/
RUN test -n "${BUILD_VERSION}" \
&& apt-get update \
&& apt-get dist-upgrade -y \
&& DEBIAN_FRONTEND=${DEBIAN_FRONTEND} apt-get install -y --no-install-recommends bash procps dnsutils coreutils libidn12 curl ca-certificates socat openssl xxd bsdextrautils \
&& rm -rf /usr/bin/pebble \
&& curl --proto "=https" --proto-redir "=https" -L "${ARCHIVE_URL}${BUILD_VERSION}.tar.gz" -o /tmp/testssl.tar.gz \
&& tar xzf /tmp/testssl.tar.gz --strip 1 -C /home/testssl \
&& groupadd --system testssl \
&& useradd --system --gid testssl --shell /bin/bash --home-dir /home/testssl testssl \
&& ln -s /home/testssl/testssl.sh /usr/local/bin/testssl.sh \
&& mkdir -p /home/testssl/etc /home/testssl/bin \
&& chmod 755 /home/testssl/etc /home/testssl/bin
LABEL org.opencontainers.image.authors="Jauder Ho <[email protected]>"
LABEL org.opencontainers.image.url="https://github.com/jauderho/dockerfiles"
LABEL org.opencontainers.image.documentation="https://github.com/jauderho/dockerfiles"
LABEL org.opencontainers.image.source="https://github.com/jauderho/dockerfiles"
LABEL org.opencontainers.image.title="jauderho/testssl.sh"
LABEL org.opencontainers.image.description="testssl.sh is a free command line tool which checks a server on any port for TLS/SSL ciphers"
#USER testssl
ENTRYPOINT ["testssl.sh"]
CMD ["--help"]