Skip to content

Commit 279150a

Browse files
authored
fix parent build glibc issue (#250)
1 parent 88fc788 commit 279150a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

parent/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
####################################################################################################
55
## Chef image
66
####################################################################################################
7-
FROM public.ecr.aws/docker/library/rust:latest AS chef
7+
FROM public.ecr.aws/amazonlinux/amazonlinux:2023 AS chef
88
ARG TARGETPLATFORM
99

1010
WORKDIR /app
11-
RUN apt-get update && apt-get install -y build-essential
11+
RUN dnf install -y gcc gcc-c++ make openssl-devel pkg-config
12+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
13+
ENV PATH="/root/.cargo/bin:${PATH}"
1214
RUN rustup target add $TARGETPLATFORM
1315
RUN cargo install cargo-chef --locked
1416

0 commit comments

Comments
 (0)