-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from spameier/feat/alpine
Add Dockerfile for alpine based container
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |