nushell/docker/Package.glibc-busybox.Dockerfile
2019-09-11 09:38:22 +07:00

12 lines
417 B
Docker

ARG base
FROM gcr.io/distroless/cc AS patch
FROM ${base}
ARG artifact
COPY ${artifact} /bin/
COPY --from=patch /lib/x86_64-linux-gnu/libz* /lib/x86_64-linux-gnu/
COPY --from=patch /lib/x86_64-linux-gnu/libdl* /lib/x86_64-linux-gnu/
COPY --from=patch /lib/x86_64-linux-gnu/librt* /lib/x86_64-linux-gnu/
COPY --from=patch /lib/x86_64-linux-gnu/libgcc_s* /lib/x86_64-linux-gnu/
ENTRYPOINT ["/bin/nu"]