-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (20 loc) · 825 Bytes
/
Dockerfile
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
FROM alpine:3.19.1
ENV SSLSCAN_VERSION "2.1.3"
ENV CFLAGS "-D__USE_GNU"
RUN apk add --no-cache --virtual .build-deps build-base git perl zlib-dev libc6-compat binutils linux-headers && \
git clone --depth 1 -b $SSLSCAN_VERSION https://github.com/rbsec/sslscan.git && \
cd sslscan && \
make static && make install && \
cd / && rm -rf sslscan && \
strip /usr/bin/sslscan
# apk del .build-deps
# Start from scratch and only add what is really, really needed, to reduce the
# size of the image to the absolute minimum
FROM scratch
MAINTAINER Klaus Umbach <klaus+docker@uxix.de>
COPY --from=0 /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1
COPY --from=0 /lib/libz.so.1 /lib/libz.so.1
COPY --from=0 /etc/passwd /etc/passwd
COPY --from=0 /usr/bin/sslscan /sslscan
USER nobody
ENTRYPOINT ["/sslscan"]