Fix for busybox symlinks
This commit is contained in:
parent
5833b66d7c
commit
96cb6621b9
13
Dockerfile
13
Dockerfile
@ -21,16 +21,15 @@ RUN for pkg in $PACKAGES; do \
|
||||
name=$(echo $pkg | cut -d/ -f2); \
|
||||
curl -L https://archlinux.org/packages/$repo/$ARCH/$name/download \
|
||||
| tar xJ -C . ; \
|
||||
done
|
||||
|
||||
# Pull and install busybox binaries
|
||||
RUN curl -L https://busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/busybox-$ARCH > /output/usr/bin/busybox && \
|
||||
chmod +x /output/bin/busybox && \
|
||||
/output/bin/busybox --install -s /output/bin && \
|
||||
done && \
|
||||
rm -f .BUILDINFO .INSTALL .PKGINFO .MTREE && \
|
||||
rm -rf usr/share usr/include lib/*.a lib/*.o lib/gconv \
|
||||
bin/ldconfig bin/sln bin/localedef bin/nscd
|
||||
|
||||
# Pull and install busybox binaries
|
||||
RUN curl -L https://busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/busybox-$ARCH > /output/usr/bin/busybox && \
|
||||
chmod +x /output/bin/busybox
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
# Build and install openssl
|
||||
@ -47,4 +46,6 @@ RUN curl -L https://www.openssl.org/source/openssl-1.1.0e.tar.gz | \
|
||||
FROM scratch
|
||||
WORKDIR /
|
||||
COPY --from=builder /output/ /
|
||||
# Needed cos we dont have /bin/sh yet
|
||||
RUN ["/bin/busybox", "--install", "-s", "/bin"]
|
||||
CMD ["sh"]
|
||||
|
Loading…
Reference in New Issue
Block a user