Skip to content

Commit

Permalink
Merge pull request #3 from spameier/feat/alpine
Browse files Browse the repository at this point in the history
Add Dockerfile for alpine based container
  • Loading branch information
spameier authored May 12, 2020
2 parents 5717afc + 10b5814 commit 038370c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM alpine

LABEL maintainer="RaBe IT Reaktion <it@rabe.ch>"
LABEL vendor="Radio Bern RaBe <http://rabe.ch>"

RUN apk add --no-cache \
alsa-lib-dev \
coreutils \
g++ \
lame-dev \
libmad-dev \
m4 \
make \
musl-dev \
opam \
pcre-dev \
pkgconfig \
taglib-dev \
&& adduser -D liquidsoap \
&& mkdir -p /var/{log/liquidsoap,run/liquidsoap} \
&& chown liquidsoap /var/{log/liquidsoap,run/liquidsoap}

USER liquidsoap

ENV OCAML_VERSION 4.10.0
ENV PATH /home/liquidsoap/.opam/${OCAML_VERSION}/bin:${PATH}
RUN opam init --disable-sandboxing --auto-setup \
&& opam switch create ${OCAML_VERSION} \
&& opam install --yes alsa cry lame mad taglib \
&& opam clean

ENV LS_VERSION 1.4.2
RUN opam install --yes liquidsoap.${LS_VERSION} \
&& opam clean

WORKDIR /var/lib/liquidsoap

ENTRYPOINT ["liquidsoap"]

0 comments on commit 038370c

Please sign in to comment.