1
0
Fork 0

Run icecast as non-root user.

liquidsoap-2.2
Icedream 2022-03-09 13:25:47 +01:00
parent 2e7881819e
commit 043000882e
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
2 changed files with 6 additions and 5 deletions

View File

@ -34,19 +34,21 @@
</paths> </paths>
<logging> <logging>
<accesslog>null</accesslog> <accesslog>stdout</accesslog>
<errorlog>null</errorlog> <errorlog>stderr</errorlog>
<playlistlog>null</playlistlog> <playlistlog>stdout</playlistlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --> <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <logsize>10000</logsize>
<logarchive>0</logarchive> <logarchive>0</logarchive>
</logging> </logging>
<!--
<security> <security>
<changeowner> <changeowner>
<user>icecast</user> <user>icecast</user>
<group>icecast</group> <group>icecast</group>
</changeowner> </changeowner>
</security> </security>
-->
</icecast> </icecast>

View File

@ -62,8 +62,7 @@ COPY --from=icecast /usr/local/ /usr/local/
# install share files # install share files
COPY --from=share /icecast/share/ /icecast/share/ COPY --from=share /icecast/share/ /icecast/share/
#USER 9999 USER 9999
USER root
#VOLUME [ "/data" ] #VOLUME [ "/data" ]
ENTRYPOINT [ "dumb-init" ] ENTRYPOINT [ "dumb-init" ]
CMD [ "icecast", "-c", "/icecast.xml" ] CMD [ "icecast", "-c", "/icecast.xml" ]