-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 795 Bytes
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 795 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
28
29
FROM public.ecr.aws/lambda/nodejs:latest
RUN yum groupinstall -y "Development Tools"
RUN yum install -y wget libpng-devel freetype-devel fontconfig-devel gcc-c++ gcc
RUN wget https://cmake.org/files/v3.10/cmake-3.10.0.tar.gz
RUN tar -xvzf cmake-3.10.0.tar.gz
WORKDIR cmake-3.10.0
RUN ./bootstrap
RUN make
RUN make install
WORKDIR ${LAMBDA_TASK_ROOT}
RUN git clone https://github.com/kakwa/libemf2svg.git
WORKDIR ${LAMBDA_TASK_ROOT}/libemf2svg
RUN cmake -DUSE_CLANG=on _DCMAKE_INSTALL_PREFIX=/ .
RUN make
RUN make install
RUN mkdir ${LAMBDA_TASK_ROOT}/node-libemf2svg
WORKDIR ${LAMBDA_TASK_ROOT}/node-libemf2svg
COPY . .
RUN npm i
RUN npm run install
RUN node ./addon
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "app.handler" ]