mirror of
https://github.com/nushell/nushell.git
synced 2024-11-21 16:03:19 +01:00
Fix wrong patch on glibc-busybox
because distroless/cc doesn't contain libz
This commit is contained in:
parent
62e6cc4dae
commit
9dc58247e5
@ -1,12 +1,15 @@
|
||||
ARG base
|
||||
FROM gcr.io/distroless/cc AS patch
|
||||
FROM debian:stable-slim 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/
|
||||
COPY --from=patch \
|
||||
/lib/x86_64-linux-gnu/libz.so.1 \
|
||||
/lib/x86_64-linux-gnu/libdl.so.2 \
|
||||
/lib/x86_64-linux-gnu/librt.so.1 \
|
||||
/lib/x86_64-linux-gnu/libgcc_s.so.1 \
|
||||
/lib/x86_64-linux-gnu/
|
||||
|
||||
ENTRYPOINT ["/bin/nu"]
|
@ -5,5 +5,8 @@ FROM ${base}
|
||||
ARG artifact
|
||||
COPY ${artifact} /bin/
|
||||
|
||||
COPY --from=patch /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libz.so.1
|
||||
COPY --from=patch \
|
||||
/lib/x86_64-linux-gnu/libz.so.1 \
|
||||
/lib/x86_64-linux-gnu/
|
||||
|
||||
ENTRYPOINT ["/bin/nu"]
|
Loading…
Reference in New Issue
Block a user