Fix: entrypoint.sh permissions

This commit is contained in:
Michele Bologna
2024-11-28 10:34:52 +01:00
parent afac4af31f
commit b52e5d6523
3 changed files with 13 additions and 7 deletions

View File

@@ -106,14 +106,13 @@ RUN touch /var/run/bitlbee.pid && chown bitlbee:nogroup /var/run/bitlbee.pid
EXPOSE 6667
USER bitlbee
# Needed for VOLUME permissions
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
# Define volumes for persistent data
VOLUME ["/var/lib/bitlbee"]
# Needed for VOLUME permissions
COPY entrypoint.sh /entrypoint.sh
USER bitlbee
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/local/sbin/bitlbee", "-D", "-n", "-v", "-u", "bitlbee"]