Skip to content

Commit 5c4f9a8

Browse files
committed
Add Dockerfile for building sample app on linux64 machine
1 parent 981c907 commit 5c4f9a8

File tree

4 files changed

+25
-22
lines changed

4 files changed

+25
-22
lines changed

Dockerfile

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
FROM public.ecr.aws/lambda/provided:al2
1+
FROM ubuntu:22.04
22

3-
#todo file name
4-
COPY sample/build/bin/linuxX64/releaseExecutable/sample.kexe /var/runtime/bootstrap
3+
ENV DEBIAN_FRONTEND=noninteractive
54

6-
COPY large-file.json /var/task/large-file.json
7-
RUN chmod +r /var/task/large-file.json
5+
RUN apt-get update && \
6+
apt-get install -y openjdk-17-jdk curl libcurl4-openssl-dev git unzip && \
7+
apt-get clean
88

9-
COPY o.json /var/task/o.json
10-
RUN chmod +r /var/task/o.json
11-
12-
# Check if RIE is in /usr/local/bin or /opt/aws
13-
RUN if [ -f /usr/local/bin/aws-lambda-rie ] || [ -f /opt/aws/aws-lambda-rie ]; then echo "RIE is present"; else echo "RIE is not present"; fi
14-
15-
COPY lambda_docker_entry_point.sh /lambda_docker_entry_point.sh
16-
RUN chmod +x /lambda_docker_entry_point.sh
17-
18-
ENTRYPOINT ["/lambda_docker_entry_point.sh"]
9+
WORKDIR /sample

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
junit = "4.13.2"
3-
kotlin = "2.0.0"
3+
kotlin = "2.0.10"
44
coroutinest-test = "1.9.0-RC"
55
ktor = "3.0.0-beta-2"
66
serialization = "1.6.3"

runtime-emulator/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM public.ecr.aws/lambda/provided:al2
2+
3+
#todo file name
4+
COPY sample/build/bin/linuxX64/releaseExecutable/sample.kexe /var/runtime/bootstrap
5+
6+
COPY large-file.json /var/task/large-file.json
7+
RUN chmod +r /var/task/large-file.json
8+
9+
COPY o.json /var/task/o.json
10+
RUN chmod +r /var/task/o.json
11+
12+
# Check if RIE is in /usr/local/bin or /opt/aws
13+
RUN if [ -f /usr/local/bin/aws-lambda-rie ] || [ -f /opt/aws/aws-lambda-rie ]; then echo "RIE is present"; else echo "RIE is not present"; fi
14+
15+
COPY lambda_docker_entry_point.sh /lambda_docker_entry_point.sh
16+
RUN chmod +x /lambda_docker_entry_point.sh
17+
18+
ENTRYPOINT ["/lambda_docker_entry_point.sh"]

sample/src/nativeInterop/cinterop/libcurl.def

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)