Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+2
-28
@@ -1,31 +1,5 @@
|
||||
# =============================================================================
|
||||
# Radio image — liquidsoap base with icecast2 added on top.
|
||||
#
|
||||
# BASE CHOICE: savonet/liquidsoap:v2.3.2, pinned. Liquidsoap is by far the
|
||||
# harder of the two to install (OCaml toolchain, many audio codecs), so the
|
||||
# image starts from the official liquidsoap build and adds icecast2 from apt,
|
||||
# rather than the other way round. Both daemons then run in one container so
|
||||
# liquidsoap can reach icecast on localhost — see icecast2/entrypoint.sh.
|
||||
#
|
||||
# PACKAGES
|
||||
# icecast2 the streaming server itself
|
||||
# gettext provides `envsubst` for rendering the two config templates
|
||||
# media-types the /etc/mime.types database; without it icecast serves the
|
||||
# stream and its status pages with wrong content types
|
||||
#
|
||||
# THE USER SWITCH: apt needs root, so the image switches to root, installs,
|
||||
# creates an unprivileged `radio` user, chowns everything the two daemons will
|
||||
# need to write (icecast config, its logs, the music dir, the liquidsoap config
|
||||
# dir) and then drops back to `radio` for the rest. Neither daemon runs as
|
||||
# root, which is also why icecast.xml sets <chroot>0</chroot> — an unprivileged
|
||||
# process cannot chroot anyway.
|
||||
#
|
||||
# The chown of /music matters even though it is mounted read-only at runtime:
|
||||
# the mount inherits ownership from the host, and the directory must exist
|
||||
# before the mount lands.
|
||||
#
|
||||
# The apt install is Debian-based and multi-arch; no platform pin needed on the Pi.
|
||||
# =============================================================================
|
||||
# liquidsoap base (the hard one to install) plus icecast2. media-types gives
|
||||
# icecast correct content types. Both daemons run as `radio`, hence chroot 0.
|
||||
FROM savonet/liquidsoap:v2.3.2
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
|
||||
Reference in New Issue
Block a user