Delete user prosody from entrypoing..
This commit is contained in:
@@ -19,9 +19,6 @@ RUN mkdir -p /var/lib/prosody /var/log/prosody /var/run/prosody /etc/prosody/cer
|
|||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
# Switch to prosody user
|
|
||||||
USER prosody
|
|
||||||
|
|
||||||
# Expose Prosody ports
|
# Expose Prosody ports
|
||||||
# 5222: Client to Server (C2S)
|
# 5222: Client to Server (C2S)
|
||||||
# 5269: Server to Server (S2S)
|
# 5269: Server to Server (S2S)
|
||||||
|
|||||||
@@ -59,4 +59,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting Prosody..."
|
echo "Starting Prosody..."
|
||||||
exec "$@"
|
|
||||||
|
# Switch to prosody user and execute prosody
|
||||||
|
exec su prosody -c "$(printf '%s ' "$@")"
|
||||||
|
|||||||
Reference in New Issue
Block a user