Closed jessedobbelaere closed 7 months ago
Install Rust from rustup.rs and run cargo install cavif
.
Thanks for the suggestion.
I was indeed on the wrong path by building cavif with a Rust container. I installed rustup in an Alpine container, and with some adjustments that seems to do the trick ๐
FROM alpine:latest AS cavif
RUN apk add --no-cache curl gcc musl-dev
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
/root/.cargo/bin/cargo install cavif
FROM craftcms/php-fpm:8.2 AS app
COPY --from=cavif /root/.cargo/bin/cavif /usr/local/bin/cavif
...
๐ I use images running PHP on alpine linux, on ARM64 Hetzner instances.
When I download the latest release
cavif-1.5.5
, unzip and run the linux-generic binary, then I get:So I proceeded to build cavif-rs in a rust image specific for
platform=linux/arm64
, then copying the binary over the alpine image:but I end up with new errors:
I'm not a Rust expert at all. Any clue how I can build/run cavif on an arm64 instance running Alpine linux? I suppose Alpine is missing some essential libraries.