This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
FROM rust:latest
|
||||
# Install GNU tar and ensure it's used instead of BusyBox tar
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
nodejs \
|
||||
npm \
|
||||
tar \
|
||||
gzip \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -f /bin/tar \
|
||||
&& ln -s /usr/bin/tar /bin/tar
|
||||
&& rm -rf /var/lib/apt/lists/* && \
|
||||
# Check if /bin/tar is BusyBox and replace it with GNU tar
|
||||
if /bin/tar --version 2>&1 | grep -q "BusyBox"; then \
|
||||
cp /usr/bin/tar /bin/tar.gnu && \
|
||||
rm -f /bin/tar && \
|
||||
mv /bin/tar.gnu /bin/tar; \
|
||||
fi
|
||||
Reference in New Issue
Block a user