Skip to content

Commit ae73d67

Browse files
committed
Fixes after update of rust
1 parent 0a44e5d commit ae73d67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/envsub/Dockerfile.template

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
77
/etc/profile.d/ \
88
/etc/profile.d/
99
SHELL [ "bash", "-clo", "errexit" ]
10-
COPY --from=rust / /usr/local/
10+
COPY --link --from=rust / /usr/local/
1111
ARG DEBIAN_FRONTEND=noninteractive
1212
RUN <<EOF
1313
apt-get update
@@ -18,8 +18,9 @@ WORKDIR /tmp/github.com/stephenc/envsub
1818
ARG name
1919
ARG version
2020
RUN <<EOF
21-
source "/usr/local/etc/profile.d/cargo.sh"
2221
git clone -q --config advice.detachedHead=false --depth 1 --branch "${version}" https://github.com/stephenc/envsub .
22+
export CARGO_HOME=/usr/local/cargo
23+
export RUSTUP_HOME=/usr/local/rustup
2324
cargo build --release --target x86_64-unknown-linux-gnu
2425
cp target/x86_64-unknown-linux-gnu/release/envsub "${prefix}${target}/bin/"
2526
EOF

0 commit comments

Comments
 (0)