Commit 91735aa2 authored by dreamer's avatar dreamer
Browse files

LS container from alpine (TODO: split build + runtime)

parent f4689271
......@@ -18,6 +18,3 @@ services:
restart: unless-stopped
volumes:
- /mnt/radio:/mnt/radio
entrypoint:
- liquidsoap
- playlist.liq
# # LS container
FROM savonet/liquidsoap-full as liquidsoap
ARG OPAM_VERSION=2.0.6
RUN apt-get update && apt-get install -y \
gstreamer1.0-rtsp \
gstreamer1.0-plugins-bad-videoparsers \
gstreamer1.0-libav \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-plugins-bad
# LS container
FROM alpine:3.11 as liquidsoap
ARG OPAM_VERSION
RUN apt-get update && apt-get install -y\
frei0r-plugins \
libfrei0r-ocaml
RUN apk --no-cache add \
opam \
make \
m4 \
ocaml-compiler-libs \
musl-dev \
automake \
autoconf \
pkgconf \
pcre-dev
RUN apt-get update && apt-get install -y\
ffmpeg
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
RUN opam init --disable-sandboxing
RUN test -r /appuser/.opam/opam-init/init.sh && . /appuser/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
USER root
RUN apk --no-cache add \
libvorbis-dev \
lame-dev \
opus-dev
USER appuser
RUN opam update && \
opam install -y \
liquidsoap \
vorbis \
lame \
opus \
cry
WORKDIR /app
COPY notlive.ogg /app/notlive.ogg
COPY playlist.liq .
CMD ["liquidsoap", "playlist.liq"]
CMD ["/home/appuser/.opam/default/bin/liquidsoap", "playlist.liq"]
......@@ -9,7 +9,7 @@ set("harbor.password","source")
set("harbor.password","hackme")
# Put the log file in some directory where
# you have permission to write.
set("log.file.path","/mnt/radio/logs/playlist.log")
# set("log.file.path","/mnt/radio/logs/playlist.log")
# Print log messages to the console,
# can also be done by passing the -v option to liquidsoap.
set("log.stdout", true)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment