cb34cae943
Replace 'python' package (Python 2, removed in Ubuntu 24.04+) with a simple 'ln -sf python3 python' symlink that works on all Ubuntu versions.
25 lines
953 B
Docker
25 lines
953 B
Docker
FROM ubuntu:18.04
|
|
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
|
|
|
|
# hadolint ignore=DL3008,SC3009,SC2086
|
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
|
export BUILD_PACKAGES=git-core && \
|
|
export RUNTIME_PACKAGES="python3 bsdmainutils curl python3-six ca-certificates" && \
|
|
apt-get -qq update && \
|
|
apt-get -qq --no-install-recommends --yes install ${BUILD_PACKAGES} ${RUNTIME_PACKAGES} && \
|
|
ln -sf /usr/bin/python3 /usr/bin/python && \
|
|
git clone https://github.com/jvehent/cipherscan.git && \
|
|
/cipherscan/cscan.sh -l && \
|
|
apt-get -qq --yes remove --purge ${BUILD_PACKAGES} && \
|
|
apt-get -qq --yes autoremove --purge && \
|
|
apt-get -qq --yes clean all && \
|
|
rm -rf /usr/share/doc/* \
|
|
/usr/src/* \
|
|
/var/cache/* \
|
|
/var/lib/apt/lists/* \
|
|
/var/log/apt \
|
|
/var/log/dpkg.log \
|
|
/tmp/*
|
|
|
|
ENTRYPOINT [ "/cipherscan/cipherscan" ]
|
|
CMD [ "--help" ] |