From 521a95214ebfd813c0a84d86efd5f4261743cfc6 Mon Sep 17 00:00:00 2001 From: Adam French Date: Mon, 24 Nov 2025 14:15:56 +0000 Subject: [PATCH] adding radio user --- icecast/Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/icecast/Dockerfile b/icecast/Dockerfile index 3b9da58..394083b 100644 --- a/icecast/Dockerfile +++ b/icecast/Dockerfile @@ -2,10 +2,15 @@ FROM debian:latest as builder WORKDIR /app -RUN apt-get update \ - && apt-get install --yes icecast2 gettext - COPY icecast.xml.template /etc/icecast2/icecast.xml.template COPY entrypoint.sh /entrypoint.sh +RUN apt-get update \ + && apt-get install --yes icecast2 gettext + +RUN useradd radio +RUN chown -R radio:radio /etc/icecast2 /var/log/icecast2 + +USER radio + ENTRYPOINT [ "/entrypoint.sh" ]