Skip to content

Commit

Permalink
Fixed builds #2213
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jan 1, 2024
1 parent ee98d97 commit ee3dd69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tools/httpie/Dockerfile.template
Expand Up @@ -8,8 +8,8 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
#COPY --link --from=python / /
COPY --link --from=shiv / /
#COPY --link --from=python / /usr/local/
COPY --link --from=shiv / /usr/local/
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
Expand Down
15 changes: 5 additions & 10 deletions tools/huber/Dockerfile.template
Expand Up @@ -7,27 +7,22 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
COPY --from=rust / /
COPY --from=rust / /usr/local/
ARG DEBIAN_FRONTEND=noninteractive
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
build-essential
EOF
WORKDIR /tmp/github.com/innobead/huber
ARG name
ARG version
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
build-essential \
libarchive13 \
libarchive-dev \
libssl-dev \
pkg-config
EOF
WORKDIR /tmp/github.com/innobead/huber
RUN <<EOF
source "/etc/profile.d/cargo.sh"
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/innobead/huber .
export CARGO_HOME=/usr/local/cargo
export RUSTUP_HOME=/usr/local/rustup
export RUSTFLAGS='-C target-feature=+crt-static'
cargo build --target x86_64-unknown-linux-gnu --release --workspace --exclude=huber-generator
cp target/x86_64-unknown-linux-gnu/release/huber "${prefix}/bin/"
Expand Down

0 comments on commit ee3dd69

Please sign in to comment.