Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for 2.2.5 #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:focal
FROM debian:bookworm-slim

LABEL maintainer="Kirill Plotnikov <[email protected]>" \
github="https://github.com/pltnk/docker-liquidsoap"
Expand All @@ -10,11 +10,21 @@ RUN apt update && apt upgrade -y && \
apt install -y \
opam \
gcc \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libjemalloc-dev \
libswresample-dev \
libswscale-dev \
libcurl4-gnutls-dev \
libmad0-dev \
libmp3lame-dev \
libogg-dev \
libpcre3-dev \
libsamplerate0-dev \
libssl-dev \
libtag1-dev \
libvorbis-dev \
m4 \
Expand All @@ -24,25 +34,22 @@ RUN apt update && apt upgrade -y && \
apt autoremove && apt clean && \
rm -rf /var/lib/apt/lists/*

ARG LIQUIDSOAP_VERSION
ARG OPAM_PACKAGES="liquidsoap${LIQUIDSOAP_VERSION:+.$LIQUIDSOAP_VERSION} taglib mad lame vorbis cry samplerate ssl ffmpeg jemalloc"

# add user for liquidsoap and create necessary directories
RUN groupadd -g 999 radio && \
useradd -m -r -u 999 -s /bin/bash -g radio radio && \
mkdir /etc/liquidsoap /music && \
chown -R radio /etc/liquidsoap /music

ARG LIQUIDSOAP_VERSION
ARG OPAM_PACKAGES="liquidsoap${LIQUIDSOAP_VERSION:+.$LIQUIDSOAP_VERSION} taglib mad lame vorbis cry samplerate"

USER radio

# setup opam
RUN opam init -a -y --disable-sandboxing && \
eval $(opam env) && \
opam install -y depext
RUN opam init -a -y --disable-sandboxing --comp 4.14.2

# install liquidsoap
RUN opam depext -y ${OPAM_PACKAGES} && \
opam install -y ${OPAM_PACKAGES} && \
RUN opam install -y ${OPAM_PACKAGES} && \
eval $(opam env) && \
opam clean -acryv --logs --unused-repositories

Expand Down