Fix Alpine Dockerfile (#11538)
This commit is contained in:
parent
7d54e9258d
commit
bfbb92f0a1
@ -25,3 +25,6 @@ rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3", "-Ctarget-feature=+crt-static
|
|||||||
# Enables the aes-ni instructions for RustCrypto dependency.
|
# Enables the aes-ni instructions for RustCrypto dependency.
|
||||||
rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"]
|
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"]
|
||||||
|
@ -10,14 +10,16 @@ RUN apk add --no-cache \
|
|||||||
eudev-dev \
|
eudev-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
perl \
|
perl \
|
||||||
rust
|
rust \
|
||||||
|
clang-dev \
|
||||||
|
llvm-dev
|
||||||
|
|
||||||
WORKDIR /parity
|
WORKDIR /parity
|
||||||
COPY . /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
|
RUN strip target/x86_64-alpine-linux-musl/release/parity
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
|
|
||||||
# show backtraces
|
# show backtraces
|
||||||
|
Loading…
Reference in New Issue
Block a user