We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ef7039 + 5bed29b commit 296cb27Copy full SHA for 296cb27
Dockerfile
@@ -1,14 +1,11 @@
1
-# https://github.com/lambci/docker-lambda#documentation
2
-FROM docker.io/lambci/lambda:build-provided.al2
+FROM public.ecr.aws/lambda/provided:al2
3
4
ARG RUST_VERSION=1.54.0
5
-RUN yum -y update
6
-RUN yum -y remove kernel-devel-4.14.203-156.332.amzn2
7
RUN yum install -y jq openssl-devel
8
-RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
+RUN set -o pipefail && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
9
| CARGO_HOME=/cargo RUSTUP_HOME=/rustup sh -s -- -y --profile minimal --default-toolchain $RUST_VERSION
10
-ADD build.sh /usr/local/bin/
11
-ADD latest.sh /usr/local/bin/
+COPY build.sh /usr/local/bin/
+COPY latest.sh /usr/local/bin/
12
VOLUME ["/code"]
13
WORKDIR /code
14
ENTRYPOINT ["/usr/local/bin/build.sh"]
0 commit comments