This repository has been archived on 2024-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
stagex/tests/perl/Dockerfile

15 lines
375 B
Docker
Raw Normal View History

2023-11-15 10:24:13 +00:00
FROM ocirep/busybox as build
COPY . .
RUN set -eux; \
mkdir -p $HOME/rootfs/etc; \
echo "nogroup:*:100:nobody" > ~/rootfs/etc/group; \
echo "nobody:*:100:100:::" > ~/rootfs/etc/passwd; \
2023-11-16 10:06:02 +00:00
cp main.pl $HOME/rootfs/
2023-11-15 10:24:13 +00:00
FROM scratch
COPY --from=build --chown=100:100 /home/user/rootfs /
COPY --from=ocirep/perl . /
USER 100:100
ENTRYPOINT ["/usr/bin/perl"]
CMD ["/main.pl"]