AWS Lambda CPP custom runtime + SDK full build with three examples compile and zipped.
627
FROM amazonlinux:2
RUN yum -y update
RUN yum -y install git
RUN yum -y install gcc
RUN yum -y install gcc-c++
RUN yum -y install libcurl-devel
RUN yum -y install make
RUN yum -y install cmake3
RUN yum -y install zip
RUN yum -y install unzip
RUN yum -y install zlib-devel
RUN yum -y install openssl-devel
WORKDIR /root
RUN git clone https://github.com/awslabs/aws-lambda-cpp-runtime.git
RUN git clone --recursive https://github.com/aws/aws-sdk-cpp.git
WORKDIR install
WORKDIR /root/aws-lambda-cpp-runtime/build
RUN cmake3 .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=~/install
RUN make
RUN make install
WORKDIR /root/aws-sdk-cpp/build
RUN cmake3 .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DENABLE_UNITY_BUILD=ON -DCUSTOM_MEMORY_MANAGEMENT=OFF -DCMAKE_INSTALL_PREFIX=~/install -DENABLE_UNITY_BUILD=ON
RUN make
RUN make install
WORKDIR /root
RUN git clone https://github.com/awslabs/aws-lambda-cpp.git
WORKDIR /root/aws-lambda-cpp/examples/api-gateway/build
RUN cmake3 .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/install
RUN make
RUN make aws-lambda-package-api
WORKDIR /root/aws-lambda-cpp/examples/dynamodb/build
RUN cmake3 .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/install
RUN make
RUN make aws-lambda-package-ddb-demo
WORKDIR /root/aws-lambda-cpp/examples/s3/build
RUN cmake3 .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/install
RUN make
RUN make aws-lambda-package-encoder
WORKDIR /mnt
Content type
Image
Digest
Size
1.7 GB
Last updated
over 5 years ago
docker pull satachito/lambda