Skip to content

Commit c8bfa1b

Browse files
author
Reed Allman
authored
Merge pull request #194 from kppk/feature/fnuser
add fn user to jre11 runtime image
2 parents 6d63aca + 54426db commit c8bfa1b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

images/runtime/Dockerfile-jre11

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ COPY src/main/c/libfnunixsocket.so /function/runtime/lib/
44

55
RUN ["/usr/bin/java", "-Xshare:dump"]
66

7+
RUN addgroup --system --gid 1000 fn && adduser --uid 1000 --gid 1000 fn
8+
79
# The UseExeperimentalVMOptions, UseCGroupMemoryLimitForHeap and MaxRAMFraction options that were used in the JDK 9 builds are
810
# no longer supported in JDK 11 - so these have been removed. We now rely on the built-in ContainerSupport option that Linux JDKs
911
# use to configure themselves when detecting they are running in a container.

0 commit comments

Comments
 (0)