Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(self-host): strip the caddy file capability in fluxer-static (#2578)

Hampusb6c6928073d5
diff --git a/fluxer_static/Dockerfile b/fluxer_static/Dockerfile
index 76880a6e4..df46e5e81 100644
--- a/fluxer_static/Dockerfile
+++ b/fluxer_static/Dockerfile
@@ -28,7 +28,8 @@ COPY --chown=65532:65532 fluxer_static/emoji /srv/fluxer-static/emoji
COPY --chown=65532:65532 fluxer_static/libs /srv/fluxer-static/libs
COPY --chown=65532:65532 fluxer_static/web /srv/fluxer-static/web
-RUN mkdir -p /config/caddy /data/caddy \
+RUN setcap -r /usr/bin/caddy \
+ && mkdir -p /config/caddy /data/caddy \
&& chown -R 65532:65532 /config /data /srv/fluxer-static
USER 65532:65532