This commit is contained in:
@@ -1 +1 @@
|
||||
docker build -t gitea.staspast.click/stas/rust-node-builder:v1 -f linux-build.Dockerfile . && docker push gitea.staspast.click/stas/rust-node-builder:v1
|
||||
docker build -t gitea.staspast.click/stas/rust-node-builder:v2 -f linux-build.Dockerfile . && docker push gitea.staspast.click/stas/rust-node-builder:v2
|
||||
@@ -6,10 +6,19 @@ RUN apt-get update && \
|
||||
npm \
|
||||
tar \
|
||||
gzip \
|
||||
curl \
|
||||
&& 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
|
||||
fi
|
||||
|
||||
# Install sccache for Rust compilation caching
|
||||
RUN SCCACHE_VERSION=0.7.4 && \
|
||||
SCCACHE_URL="https://github.com/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" && \
|
||||
curl -L "$SCCACHE_URL" | tar xz && \
|
||||
chmod +x sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl/sccache && \
|
||||
mv sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl/sccache /usr/local/bin/ && \
|
||||
rm -rf sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl
|
||||
Reference in New Issue
Block a user