We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6a39f0 commit 42d2725Copy full SHA for 42d2725
2 files changed
images/init-native/Dockerfile
@@ -30,4 +30,5 @@ WORKDIR /function
30
COPY --from=build-native-image /function/func func
31
COPY --from=build-native-image /function/runtime/lib/* .
32
ENTRYPOINT ["./func", "-XX:MaximumHeapSizePercent=80"]
33
+RUN addgroup -g 1000 -S fn && adduser -S -u 1000 -G fn fn
34
CMD [ "com.example.fn.HelloFunction::handleRequest" ]
images/init-native/Dockerfile-init-image
@@ -22,4 +22,5 @@ fi\n\
22
tar c src pom.xml func.init.yaml Dockerfile\n' > build_init_image.sh \
23
&& chmod 755 build_init_image.sh
24
25
26
CMD ["./build_init_image.sh"]
0 commit comments