diff --git a/Containerfile b/Containerfile index e1c08d42..71c913a6 100644 --- a/Containerfile +++ b/Containerfile @@ -6,14 +6,10 @@ FROM docker.io/rust:alpine as builder # Create a cache directory that will be copied into the final image RUN mkdir "/cache" +# Install alpine-sdk that provides build dependencies # Install ssl certificates that will also be copied into the final image RUN apk update && apk add --no-cache alpine-sdk ca-certificates -# Update crates io index via git cli, otherwise we'll an out of memory when building for arm https://github.com/rust-lang/cargo/issues/9167 -RUN mkdir -p ~/.cargo/ -RUN echo "[net]" > ~/.cargo/config -RUN echo "git-fetch-with-cli = true" >> ~/.cargo/config - # Prepare build dir RUN mkdir /app WORKDIR /app