diff --git a/Dockerfile b/Dockerfile index c041ccb..c4af7ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,44 +6,34 @@ ARG INSTALL_ROOT=/rootfs FROM opensuse/leap:${LEAP_VERSION} as builder ARG CACHE_ZYPPER=/tmp/cache/zypper ARG INSTALL_ROOT -# --mount is only necessary for persisting the zypper cache on the build host, -# Paired with --cache-dir below, RUN layer invalidation does not clear this cache. -# Not useful for CI, only local builds that retain the storage. -RUN --mount=type=cache,target="${CACHE_ZYPPER}",sharing=locked <> /etc/passwd \ + && echo 'testssl:x:1000:' >> /etc/group \ + && echo 'testssl:!::0:::::' >> /etc/shadow \ + && install --mode 2755 --owner testssl --group testssl --directory /home/testssl \ + && ln -s /home/testssl/testssl.sh /usr/local/bin/ # Copy over build context (after filtered by .dockerignore): bin/ etc/ testssl.sh COPY --chown=testssl:testssl . /home/testssl/