-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 756 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
30
31
32
# Dockerfile for runing a Kotlin native fibonacci action
FROM jamedina/openwhisk-kotlin-native
MAINTAINER Juan Medina <jamedina@gmail.com>
#add basic gradle files
ADD .gradle/ /temp-build/.gradle
ADD gradle/ /temp-build/gradle
ADD build.gradle /temp-build
ADD gradlew /temp-build
ADD gradle.properties /temp-build
#get the compiler
WORKDIR /temp-build
RUN ./gradlew
# add our action code
ADD src/ /temp-build/src
ADD buildCpp.sh /temp-build
#build our action
RUN ./gradlew build
#copy the action as the default OpenWhisk docker actions
RUN mkdir /action
RUN cp /temp-build/build/konan/bin/fibonacci.kexe /action/exec
#clean up
RUN rm -rf /temp-build
RUN rm -rf /kotlin-native
CMD ["/bin/bash", "-c", "cd /actionProxy && python3 -u actionproxy.py"]