-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f15688
commit fedd062
Showing
2 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,43 @@ | ||
#syntax=docker/dockerfile:1.6.0 | ||
|
||
FROM ghcr.io/uniget-org/tools/rust:latest AS rust | ||
#FROM ghcr.io/uniget-org/tools/rust:latest AS rust | ||
|
||
FROM nicholasdille/ubuntu:22.04 AS prepare | ||
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ | ||
/etc/profile.d/ \ | ||
/etc/profile.d/ | ||
SHELL [ "bash", "-clo", "errexit" ] | ||
COPY --from=rust / /usr/local/ | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
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 | ||
#COPY --from=rust / /usr/local/ | ||
#ARG DEBIAN_FRONTEND=noninteractive | ||
#RUN <<EOF | ||
#apt-get update | ||
#apt-get -y install --no-install-recommends \ | ||
# build-essential \ | ||
# libarchive13 \ | ||
# libarchive-dev \ | ||
# libssl-dev \ | ||
# liblzma-dev \ | ||
# libbz2-dev \ | ||
# libzstd-dev \ | ||
# nettle-dev \ | ||
# liblz4-dev \ | ||
# libxml2-dev \ | ||
# pkg-config | ||
#EOF | ||
#WORKDIR /tmp/github.com/innobead/huber | ||
ARG name | ||
ARG version | ||
#RUN <<EOF | ||
#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 -llzma -lbz2 -lzstd -lnettle -llz4 -lxml2' | ||
#cargo build --target x86_64-unknown-linux-gnu --release --workspace --exclude=huber-generator | ||
#cp target/x86_64-unknown-linux-gnu/release/huber "${prefix}/bin/" | ||
#EOF | ||
RUN <<EOF | ||
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/" | ||
check-github-release-asset "innobead/huber" "v${version}" "huber-linux-${alt_arch}" | ||
curl --silent --location --fail --output "${prefix}${target}/bin/huber" \ | ||
"https://github.com/innobead/huber/releases/download/v${version}/huber-linux-${alt_arch}" | ||
chmod +x "${prefix}${target}/bin/huber" | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters