Skip to content

Commit af60dfd

Browse files
chore: possibly working bottlecap non-alpine compile
1 parent 7dd6336 commit af60dfd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

images/Dockerfile.bottlecap.compile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM public.ecr.aws/lambda/provided:al2 AS compiler
22
ARG PLATFORM
33

4-
# FIPS is not used for now.
54
ARG FIPS
65

76
# Install dependencies
8-
RUN yum install -y curl gcc gcc-c++ make unzip cmake3 perl go
7+
RUN yum install -y curl clang make unzip cmake3 perl go
8+
# We need to use clang to make sure the FIPS build goes well.
9+
ENV CC=clang
910

1011
# Install Protocol Buffers compiler by hand, since AL2 does not have a recent enough version.
1112
COPY ./scripts/install-protoc.sh /
@@ -33,7 +34,6 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
3334
else \
3435
export FEATURES=default; \
3536
fi; \
36-
echo FEATURES=$FEATURES; \
3737
cargo +stable build --no-default-features --features $FEATURES --release --target $PLATFORM-unknown-linux-gnu;
3838
RUN cp /tmp/dd/bottlecap/target/$PLATFORM-unknown-linux-gnu/release/bottlecap /tmp/dd/bottlecap/bottlecap
3939

0 commit comments

Comments
 (0)