2019-09-09 11:45:55 +02:00
|
|
|
ARG base
|
2019-09-09 11:45:55 +02:00
|
|
|
FROM gcr.io/distroless/cc AS patch
|
2019-09-09 11:45:55 +02:00
|
|
|
FROM ${base}
|
|
|
|
|
|
|
|
ARG artifact
|
|
|
|
COPY ${artifact} /bin/
|
|
|
|
|
2019-09-09 11:45:55 +02:00
|
|
|
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/
|
2019-09-09 11:45:55 +02:00
|
|
|
ENTRYPOINT ["/bin/nu"]
|