From d896050a3704bec9ad8ba7663cf469ff7415f4b7 Mon Sep 17 00:00:00 2001 From: Genysys Date: Thu, 20 Oct 2022 14:21:41 +0400 Subject: [PATCH] fix(docker):add cflag to avoid build errors (#3514) Co-authored-by: Genysys <112424909+samtvlabs@users.noreply.github.com> --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f2dbefb51f9..494f87f13a14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ -FROM alpine AS build-environment +FROM alpine as build-environment +ENV CFLAGS=-mno-outline-atomics WORKDIR /opt RUN apk add clang lld curl build-base linux-headers git \ && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh \ && chmod +x ./rustup.sh \ && ./rustup.sh -y + WORKDIR /opt/foundry COPY . . RUN source $HOME/.profile && cargo build --release \ @@ -11,7 +13,7 @@ RUN source $HOME/.profile && cargo build --release \ && strip /opt/foundry/target/release/cast \ && strip /opt/foundry/target/release/anvil -FROM alpine AS foundry-client +FROM alpine as foundry-client ENV GLIBC_KEY=https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub ENV GLIBC_KEY_FILE=/etc/apk/keys/sgerrand.rsa.pub ENV GLIBC_RELEASE=https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r0/glibc-2.35-r0.apk