build: get the proper toolchain ahead of time

This commit is contained in:
Hamcha 2024-03-30 19:28:17 +01:00
parent 61d699c236
commit 9fac65087a

View file

@ -1,6 +1,6 @@
FROM rust:1-alpine as builder FROM rust:1-alpine as builder
RUN rustup default stable RUN rustup default stable-x86_64-unknown-linux-musl
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static pkgconf git RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static pkgconf git
# Set `SYSROOT` to a dummy path (default is /usr) because pkg-config-rs *always* # Set `SYSROOT` to a dummy path (default is /usr) because pkg-config-rs *always*