hack/lib/tilt: run Tilt images with non-root user
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
parent
fcea48c8f9
commit
2e50e8f01b
@ -10,5 +10,8 @@ COPY build/pinniped-concierge /usr/local/bin/pinniped-concierge
|
|||||||
# Document the port
|
# Document the port
|
||||||
EXPOSE 8443
|
EXPOSE 8443
|
||||||
|
|
||||||
|
# Run as non-root for security posture
|
||||||
|
USER 1001:1001
|
||||||
|
|
||||||
# Set the entrypoint
|
# Set the entrypoint
|
||||||
ENTRYPOINT ["/usr/local/bin/pinniped-concierge"]
|
ENTRYPOINT ["/usr/local/bin/pinniped-concierge"]
|
||||||
|
@ -10,5 +10,8 @@ COPY build/local-user-authenticator /usr/local/bin/local-user-authenticator
|
|||||||
# Document the port
|
# Document the port
|
||||||
EXPOSE 8443
|
EXPOSE 8443
|
||||||
|
|
||||||
|
# Run as non-root for security posture
|
||||||
|
USER 1001:1001
|
||||||
|
|
||||||
# Set the entrypoint
|
# Set the entrypoint
|
||||||
ENTRYPOINT ["/usr/local/bin/local-user-authenticator"]
|
ENTRYPOINT ["/usr/local/bin/local-user-authenticator"]
|
||||||
|
@ -8,7 +8,10 @@ FROM debian:10.5-slim
|
|||||||
COPY build/pinniped-supervisor /usr/local/bin/pinniped-supervisor
|
COPY build/pinniped-supervisor /usr/local/bin/pinniped-supervisor
|
||||||
|
|
||||||
# Document the port
|
# Document the port
|
||||||
EXPOSE 8443
|
EXPOSE 8080 8443
|
||||||
|
|
||||||
|
# Run as non-root for security posture
|
||||||
|
USER 1001:1001
|
||||||
|
|
||||||
# Set the entrypoint
|
# Set the entrypoint
|
||||||
ENTRYPOINT ["/usr/local/bin/pinniped-supervisor"]
|
ENTRYPOINT ["/usr/local/bin/pinniped-supervisor"]
|
||||||
|
Loading…
Reference in New Issue
Block a user