From fb5d80ed2ff53c9fdec2f7d590d2ec9e2301b6e3 Mon Sep 17 00:00:00 2001 From: Michele Bologna Date: Thu, 28 Nov 2024 10:37:33 +0100 Subject: [PATCH] Fix: entrypoint.sh permissions --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58b0dd4..545ee69 100755 --- a/Dockerfile +++ b/Dockerfile @@ -106,15 +106,13 @@ RUN touch /var/run/bitlbee.pid && chown bitlbee:nogroup /var/run/bitlbee.pid EXPOSE 6667 -USER bitlbee - -# Define volumes for persistent data -VOLUME ["/var/lib/bitlbee"] - # Needed for VOLUME permissions COPY entrypoint.sh /entrypoint.sh RUN chmod +x entrypoint.sh +# Define volumes for persistent data +VOLUME ["/var/lib/bitlbee"] +USER bitlbee ENTRYPOINT ["/entrypoint.sh"] CMD ["/usr/local/sbin/bitlbee", "-D", "-n", "-v", "-u", "bitlbee"]