|
@ -6,7 +6,7 @@ |
|
|
{% set build_stage_base_image = "rust:1.55-buster" %} |
|
|
{% set build_stage_base_image = "rust:1.55-buster" %} |
|
|
{% if "alpine" in target_file %} |
|
|
{% if "alpine" in target_file %} |
|
|
{% if "amd64" in target_file %} |
|
|
{% if "amd64" in target_file %} |
|
|
{% set build_stage_base_image = "clux/muslrust:nightly-2021-08-22" %} |
|
|
{% set build_stage_base_image = "clux/muslrust:nightly-2021-10-06" %} |
|
|
{% set runtime_stage_base_image = "alpine:3.14" %} |
|
|
{% set runtime_stage_base_image = "alpine:3.14" %} |
|
|
{% set package_arch_target = "x86_64-unknown-linux-musl" %} |
|
|
{% set package_arch_target = "x86_64-unknown-linux-musl" %} |
|
|
{% elif "armv7" in target_file %} |
|
|
{% elif "armv7" in target_file %} |
|
@ -114,6 +114,7 @@ RUN {{ mount_rust_cache -}} mkdir -pv "${CARGO_HOME}" \ |
|
|
{% if "alpine" in target_file %} |
|
|
{% if "alpine" in target_file %} |
|
|
ENV RUSTFLAGS='-C link-arg=-s' |
|
|
ENV RUSTFLAGS='-C link-arg=-s' |
|
|
{% if "armv7" in target_file %} |
|
|
{% if "armv7" in target_file %} |
|
|
|
|
|
{#- https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html -#} |
|
|
ENV CFLAGS_armv7_unknown_linux_musleabihf="-mfpu=vfpv3-d16" |
|
|
ENV CFLAGS_armv7_unknown_linux_musleabihf="-mfpu=vfpv3-d16" |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% elif "arm" in target_file %} |
|
|
{% elif "arm" in target_file %} |
|
|