Skip to content

Commit

Permalink
fix(docker): pin to Rust 1.73 to workaround internal compiler error (…
Browse files Browse the repository at this point in the history
…ICE) in Rust 1.74
  • Loading branch information
azasypkin committed Nov 19, 2023
1 parent 473191e commit 02c2c2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.2

FROM --platform=$BUILDPLATFORM rust:alpine3.18 as SERVER_BUILDER
FROM --platform=$BUILDPLATFORM rust:1.73-alpine3.18 as SERVER_BUILDER
ARG TARGETPLATFORM

## Statically link binary to OpenSSL libraries.
Expand All @@ -17,8 +17,8 @@ RUN set -x && apk add --no-cache pkgconfig musl-dev openssl-dev perl make curl
# Prepare environment: for cross compilation we download toolchain and `aarch64` OpenSSL libs.
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; \
then set -x && \
curl --remote-name-all https://musl.cc/aarch64-linux-musl-cross.tgz https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/openssl-libs-static-3.1.4-r0.apk && \
apk add --allow-untrusted openssl-libs-static-3.1.4-r0.apk && \
curl --remote-name-all https://musl.cc/aarch64-linux-musl-cross.tgz https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/openssl-libs-static-3.1.4-r1.apk && \
apk add --allow-untrusted openssl-libs-static-3.1.4-r1.apk && \
tar xzf ./aarch64-linux-musl-cross.tgz && \
rustup target add aarch64-unknown-linux-musl; \
else set -x && \
Expand Down

0 comments on commit 02c2c2e

Please sign in to comment.