We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aae1069 commit 29f76c5Copy full SHA for 29f76c5
to-nonroot/runtime-quarkus-deno/Dockerfile
@@ -0,0 +1,8 @@
1
+FROM --platform=$TARGETPLATFORM yolean/runtime-quarkus-deno:root
2
+
3
+# Appends the same nonroot directives as https://github.com/Yolean/kubernetes-kafka/tree/master/nonroot
4
+# i.e. https://github.com/solsson/dockerfiles/tree/native/kafka-nonroot
5
+RUN grep 'nonroot:x:65532' /etc/passwd || \
6
+ echo 'nonroot:x:65532:65534:nonroot:/home/nonroot:/usr/sbin/nologin' >> /etc/passwd && \
7
+ mkdir -p /home/nonroot && touch /home/nonroot/.bash_history && chown -R 65532:65534 /home/nonroot
8
+USER nonroot:nogroup
0 commit comments