We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88fc788 commit 279150aCopy full SHA for 279150a
1 file changed
parent/Dockerfile
@@ -4,11 +4,13 @@
4
####################################################################################################
5
## Chef image
6
7
-FROM public.ecr.aws/docker/library/rust:latest AS chef
+FROM public.ecr.aws/amazonlinux/amazonlinux:2023 AS chef
8
ARG TARGETPLATFORM
9
10
WORKDIR /app
11
-RUN apt-get update && apt-get install -y build-essential
+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}"
14
RUN rustup target add $TARGETPLATFORM
15
RUN cargo install cargo-chef --locked
16
0 commit comments