Skip to content

Instantly share code, notes, and snippets.

@Yamakaky
Last active May 25, 2019 14:16
Show Gist options
  • Save Yamakaky/9c0d0bba42d397f64704d94ddfa046e1 to your computer and use it in GitHub Desktop.
Save Yamakaky/9c0d0bba42d397f64704d94ddfa046e1 to your computer and use it in GitHub Desktop.
Dockerfile for Liquidsoap
# alsa
# ao
bjack
# camlimages
cry
# dssi
# faad
# fdkaac
ffmpeg
flac
# frei0r
# gavl
# gd
# graphics
# gstreamer
inotify
ladspa
lame
# lastfm
lo
mad
magic
# sdl-liquidsoap
ogg
opus
# osx-secure-transport
# portaudio
# pulseaudio
samplerate
# shine
# soundtouch
speex
# ssl
taglib
# theora
vorbis
# xmlplaylist
yojson
liquidsoap
from ocaml/opam2:alpine-3.9 as builder
copy deps deps
run sed -i '/#/d' deps
run wget http://downloads.sourceforge.net/liblo/liblo-0.30.tar.gz
run tar xf liblo*
run cd liblo-0.30 && ./configure && make && sudo make install
run opam depext $(cat deps)
run opam install --destdir=/home/opam/ls $(cat deps)
run opam depext -ln $(cat deps) > /home/opam/depexts
from alpine:3.9
copy --from=builder /home/opam/depexts /depexts
run apk --no-cache add jack jack-example-clients bash ladspa $(cat /depexts)
copy --from=builder /home/opam/.opam/4.07/ /home/opam/.opam/4.07/
copy --from=builder /home/opam/ls/ /usr/local/
copy --from=builder /usr/local/lib/liblo* /usr/local/lib/
run adduser -u 2042 -D liquidsoap
user liquidsoap
add env entrypoint.sh /home/liquidsoap/
add etc /etc/liquidsoap
workdir /app
# test conf validity
run liquidsoap --check /etc/liquidsoap/main.liq
cmd ["bash", "/home/liquidsoap/entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment