docker: Make sure main process is running with PID 1.

This commit is contained in:
Joachim Bauch 2024-02-28 22:17:34 +01:00
parent df477a7856
commit a082874377
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
4 changed files with 12 additions and 4 deletions

View file

@ -25,4 +25,3 @@ RUN /usr/bin/nextcloud-spreed-signaling-proxy -version
USER spreedbackend
ENTRYPOINT [ "/entrypoint.sh" ]
CMD ["/bin/sh", "-c", "/usr/bin/nextcloud-spreed-signaling-proxy -config $CONFIG"]

View file

@ -22,6 +22,11 @@
#
set -e
if [ -n "$1" ]; then
# Run custom command.
exec "$@"
fi
if [ -z "$CONFIG" ]; then
echo "No configuration filename given in CONFIG environment variable"
exit 1
@ -107,4 +112,4 @@ if [ ! -f "$CONFIG" ]; then
fi
echo "Starting signaling proxy with $CONFIG ..."
exec "$@"
exec /usr/bin/nextcloud-spreed-signaling-proxy -config "$CONFIG"

View file

@ -25,4 +25,3 @@ RUN /usr/bin/nextcloud-spreed-signaling -version
USER spreedbackend
ENTRYPOINT [ "/entrypoint.sh" ]
CMD ["/bin/sh", "-c", "/usr/bin/nextcloud-spreed-signaling -config $CONFIG"]

View file

@ -22,6 +22,11 @@
#
set -e
if [ -n "$1" ]; then
# Run custom command.
exec "$@"
fi
if [ -z "$CONFIG" ]; then
echo "No configuration filename given in CONFIG environment variable"
exit 1
@ -261,4 +266,4 @@ if [ ! -f "$CONFIG" ]; then
fi
echo "Starting signaling server with $CONFIG ..."
exec "$@"
exec /usr/bin/nextcloud-spreed-signaling -config "$CONFIG"