Utility on-build image extracting all files from a given archive and executing dos2unix on them.
5.0K
This repository contains a small utility on-build docker image to automatically extract an archive while executing 'dos2unix' on every file within it. It is used to create the source code snapshots in stmlab/codebase.
Pull the docker image using the following command and replace [tag] with the specific variant you want to use:
# Modifiable output directory. Defaults to mnt.
ARG OUTPUT=mnt
# Refer to onbuild image version of dos2unix. Must already be present within the current scope.
FROM docker.io/stmlab/dos2unix:onbuild as dos2unix-onbuild
# Prevent output variable from getting out of scope.
ARG OUTPUT
# Unpack a given archive on-build in a fresh image instance.
FROM docker.io/library/busybox:latest as unpack-on-build
# Prevent output variable from getting out of scope.
ARG OUTPUT
# Copy everything from extracted archive into a standalone image.
COPY --link --chmod=655 --from=dos2unix-onbuild $OUTPUT $OUTPUT
Content type
Image
Digest
sha256:58b7c3398…
Size
80.5 MB
Last updated
about 7 hours ago
docker pull stmlab/dos2unix:onbuild