Merge pull request #2407 from drwetter/fix_2403_Dockerfile_tar

add busybox link to tar
This commit is contained in:
Dirk Wetter 2023-10-03 15:17:05 +02:00 committed by GitHub
commit 96d82e2dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,8 @@ FROM scratch
ARG INSTALL_ROOT ARG INSTALL_ROOT
COPY --link --from=builder ${INSTALL_ROOT} / COPY --link --from=builder ${INSTALL_ROOT} /
# Create user + (home with SGID set): # Create user + (home with SGID set):
RUN echo 'testssl:x:1000:1000::/home/testssl:/bin/bash' >> /etc/passwd \ RUN ln -s /usr/bin/busybox /usr/bin/tar \
&& echo 'testssl:x:1000:1000::/home/testssl:/bin/bash' >> /etc/passwd \
&& echo 'testssl:x:1000:' >> /etc/group \ && echo 'testssl:x:1000:' >> /etc/group \
&& echo 'testssl:!::0:::::' >> /etc/shadow \ && echo 'testssl:!::0:::::' >> /etc/shadow \
&& install --mode 2755 --owner testssl --group testssl --directory /home/testssl \ && install --mode 2755 --owner testssl --group testssl --directory /home/testssl \