-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for rust/cargo cross-compiling under buildx (see: rust-lan…
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 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,9 +1,12 @@ | ||
FROM ubuntu:jammy | ||
|
||
RUN apt-get update && apt-get install -y wget cargo pkg-config libssl-dev && rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update && apt-get install -y curl wget build-essential pkg-config libssl-dev && rm -rf /var/lib/apt/lists/* | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly | ||
ENV PATH=/root/.cargo/bin:$PATH | ||
RUN rustup toolchain install nightly | ||
ADD "https://github.com/lovasoa/dezoomify-rs/archive/refs/tags/v2.9.4.tar.gz" /dezoomify-rs-linux.tgz | ||
ADD ./bl-dl.sh /usr/local/bin/bl-dl | ||
RUN tar xzvf dezoomify-rs-linux.tgz && cd /dezoomify-rs-2.9.4 && cargo build --release && mv -v target/release/dezoomify-rs /usr/local/bin/ && cd / && rm -rf dezoomify-rs-2.9.4 dezoomify-rs-linux.tgz && chmod a+x /usr/local/bin/bl-dl && rm -rf ~/.cargo | ||
RUN tar xzvf dezoomify-rs-linux.tgz && cd /dezoomify-rs-2.9.4 && cargo +nightly build --release -Z sparse-registry && mv -v target/release/dezoomify-rs /usr/local/bin/ && cd / && rm -rf dezoomify-rs-2.9.4 dezoomify-rs-linux.tgz && chmod a+x /usr/local/bin/bl-dl && rm -rf ~/.cargo | ||
VOLUME /data | ||
WORKDIR /data | ||
ENTRYPOINT ["bl-dl"] |