15 lines
375 B
Docker
15 lines
375 B
Docker
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; \
|
|
cp main.py $HOME/rootfs/
|
|
|
|
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"]
|