Skip to content
Snippets Groups Projects
Commit 2171b8f0 authored by David Trattnig's avatar David Trattnig
Browse files

OPAM and LQS setup in Docker.

parent 5139dabe
No related branches found
No related tags found
No related merge requests found
FROM python:3.7.7-buster FROM python:3.7.7-buster
LABEL maintainer="David Trattnig <david.trattnig@subsquare.at>" LABEL maintainer="David Trattnig <david.trattnig@subsquare.at>"
RUN set -ex \ RUN set -ex \
...@@ -10,23 +11,29 @@ RUN set -ex \ ...@@ -10,23 +11,29 @@ RUN set -ex \
&& apt-get update -q \ && apt-get update -q \
&& apt-get install -y -q --no-install-recommends \ && apt-get install -y -q --no-install-recommends \
supervisor \ supervisor \
opam \
redis-server \ redis-server \
libsndfile1 \ libsndfile1 \
ffmpeg \ ffmpeg \
quelcom \ quelcom \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY script/install-opam-packages.sh /tmp/install-opam-packages.sh # Python Package Installation
COPY script/install-web.sh tmp/install-web.sh
COPY requirements.txt /tmp/requirements.txt COPY requirements.txt /tmp/requirements.txt
RUN opam init --disable-sandboxing
RUN opam switch create 4.08.0
RUN bash tmp/install-opam-packages.sh
RUN bash tmp/install-web.sh
RUN pip3 install -r /tmp/requirements.txt RUN pip3 install -r /tmp/requirements.txt
# Create Users
RUN set -ex \ RUN set -ex \
&& adduser --home /srv --no-create-home --system --uid 1000 --group engineuser \ && adduser --home /srv --no-create-home --system --uid 1000 --group engineuser \
&& adduser engineuser audio && adduser engineuser audio
# OPAM / Liquidsoap Installation
FROM ocaml/opam2:latest
# Liquidsoap Dependencies
RUN opam init --disable-sandboxing -y
RUN opam switch create 4.08.0
RUN eval $(opam env)
RUN opam install -y depext
RUN opam depext -y flac opus pulseaudio bjack alsa liquidsoap
RUN opam install -y flac opus pulseaudio bjack alsa liquidsoap
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment