Skip to content

Commit 296cb27

Browse files
authored
Merge pull request softprops#16 from jerusdp/issue_13_dockerfile
Change base Dockerfile to AWS
2 parents 8ef7039 + 5bed29b commit 296cb27

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Dockerfile

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
# https://github.com/lambci/docker-lambda#documentation
2-
FROM docker.io/lambci/lambda:build-provided.al2
1+
FROM public.ecr.aws/lambda/provided:al2
32

43
ARG RUST_VERSION=1.54.0
5-
RUN yum -y update
6-
RUN yum -y remove kernel-devel-4.14.203-156.332.amzn2
74
RUN yum install -y jq openssl-devel
8-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
5+
RUN set -o pipefail && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
96
| 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/
7+
COPY build.sh /usr/local/bin/
8+
COPY latest.sh /usr/local/bin/
129
VOLUME ["/code"]
1310
WORKDIR /code
1411
ENTRYPOINT ["/usr/local/bin/build.sh"]

0 commit comments

Comments
 (0)