-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat-java21-runtime
- Loading branch information
Showing
20 changed files
with
253 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
ARG IMAGE_ARCH | ||
FROM public.ecr.aws/lambda/provided:al2023-$IMAGE_ARCH | ||
|
||
RUN dnf install -y tar\ | ||
gzip \ | ||
unzip \ | ||
python3 \ | ||
jq \ | ||
grep \ | ||
make \ | ||
rsync \ | ||
binutils \ | ||
gcc-c++ \ | ||
procps \ | ||
libxslt-devel \ | ||
libmpc-devel \ | ||
python3-devel \ | ||
&& dnf clean all | ||
|
||
# Install AWS CLI | ||
ARG AWS_CLI_ARCH | ||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$AWS_CLI_ARCH.zip" -o "awscliv2.zip" | ||
RUN unzip awscliv2.zip && ./aws/install && rm awscliv2.zip && rm -rf ./aws | ||
|
||
# Install SAM CLI in a dedicated Python virtualenv | ||
ARG SAM_CLI_VERSION | ||
RUN curl -L "https://github.com/awslabs/aws-sam-cli/archive/v$SAM_CLI_VERSION.zip" -o "samcli.zip" && \ | ||
unzip samcli.zip && python3 -m venv /usr/local/opt/sam-cli && \ | ||
/usr/local/opt/sam-cli/bin/pip3 --no-cache-dir install -r ./aws-sam-cli-$SAM_CLI_VERSION/requirements/base.txt && \ | ||
/usr/local/opt/sam-cli/bin/pip3 --no-cache-dir install ./aws-sam-cli-$SAM_CLI_VERSION && \ | ||
rm samcli.zip && rm -rf aws-sam-cli-$SAM_CLI_VERSION | ||
|
||
ENV PATH=$PATH:/usr/local/opt/sam-cli/bin | ||
|
||
ENV LANG=en_US.UTF-8 | ||
|
||
# Wheel is required by SAM CLI to build libraries like cryptography. It needs to be installed in the system | ||
# Python for it to be picked up during `sam build` | ||
RUN pip3 install wheel | ||
|
||
COPY ATTRIBUTION.txt / | ||
|
||
# Compatible with initial base image | ||
ENTRYPOINT [] | ||
CMD ["/bin/bash"] |
Oops, something went wrong.