From bfbb92f0a1d299d82bb6e8e3cf923c94113e3dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Antu=C3=B1a=20D=C3=ADez?= <20141918+eduadiez@users.noreply.github.com> Date: Wed, 4 Mar 2020 13:33:21 +0100 Subject: [PATCH] Fix Alpine Dockerfile (#11538) --- .cargo/config | 3 +++ scripts/docker/alpine/Dockerfile | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.cargo/config b/.cargo/config index 49fcbed03..c6c5f216c 100644 --- a/.cargo/config +++ b/.cargo/config @@ -25,3 +25,6 @@ rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3", "-Ctarget-feature=+crt-static # Enables the aes-ni instructions for RustCrypto dependency. rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"] +[target.x86_64-unknown-linux-musl] +# Enables the aes-ni instructions for RustCrypto dependency. +rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"] diff --git a/scripts/docker/alpine/Dockerfile b/scripts/docker/alpine/Dockerfile index 47b37372e..7421b48ad 100644 --- a/scripts/docker/alpine/Dockerfile +++ b/scripts/docker/alpine/Dockerfile @@ -10,14 +10,16 @@ RUN apk add --no-cache \ eudev-dev \ linux-headers \ perl \ - rust + rust \ + clang-dev \ + llvm-dev WORKDIR /parity COPY . /parity -RUN cargo build --release --target x86_64-alpine-linux-musl --verbose +ENV C=clang CXX=clang++ +RUN cargo build --release --features final --target x86_64-alpine-linux-musl --verbose RUN strip target/x86_64-alpine-linux-musl/release/parity - FROM alpine:edge # show backtraces