fix build
All checks were successful
Build / Build - linux (push) Successful in 6m53s

This commit is contained in:
2025-12-11 20:27:12 +01:00
parent 7d3f95ae82
commit e1102b8590
3 changed files with 10 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ jobs:
matrix:
include:
- platform: linux
docker_image: gitea.staspast.click/stas/rust-node-builder:custom
docker_image: gitea.staspast.click/stas/rust-node-builder:v1
target: x86_64-unknown-linux-gnu
artifact_name: rlogg-linux-x86_64
binary_extension: ""

View File

@@ -1 +1 @@
docker build -t gitea.staspast.click/stas/rust-node-builder:custom -f linux-build.Dockerfile . && docker push gitea.staspast.click/stas/rust-node-builder:custom
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

View File

@@ -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