-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 787 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y git gcc g++ cmake libcurl4-openssl-dev zlib1g zlib1g-dev libssl-dev zip
WORKDIR /usr/src
RUN git clone https://github.com/awslabs/aws-lambda-cpp.git
RUN mkdir aws-lambda-cpp/build
WORKDIR /usr/src/aws-lambda-cpp/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
RUN make && make install
WORKDIR /usr/src
RUN mkdir my-src
RUN echo "#!/bin/bash\ncd my-src/build && cmake .. && make && make aws-lambda-package-hello" > /entry.sh
RUN chmod +x /entry.sh
WORKDIR /usr/src
RUN git clone https://github.com/open-source-parsers/jsoncpp.git
RUN mkdir jsoncpp/build
WORKDIR /usr/src/jsoncpp/build
RUN cmake .. -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF
RUN make && make install
WORKDIR /usr/src
CMD /entry.sh