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

Use Liquidsoap base image, Install Python 3.8. #17

parent 3e182ebd
No related branches found
No related tags found
No related merge requests found
FROM ocaml/opam2:debian-10 FROM savonet/liquidsoap:v1.4.3
LABEL maintainer="David Trattnig <david.trattnig@subsquare.at>" LABEL maintainer="David Trattnig <david.trattnig@subsquare.at>"
# Engine System Dependencies # Engine System Dependencies
RUN sudo apt-get update && sudo apt-get -y install \ RUN apt-get update && apt-get -y install \
apt-utils \ apt-utils \
redis-server \ redis-server \
ffmpeg \ ffmpeg \
quelcom \ quelcom \
python3 \
python3-pip \
build-essential \ build-essential \
libmariadbclient-dev \ libmariadbclient-dev \
default-libmysqlclient-dev default-libmysqlclient-dev \
python3.8 python3-pip
# Liquidsoap System Dependencies
RUN sudo apt-get install -qq -yy \
libasound2-dev \
libflac-dev \
libjack-dev \
libmad0-dev \
libmp3lame-dev \
libogg-dev \
libopus-dev \
libpcre3-dev \
libpulse-dev \
libsamplerate0-dev \
libssl-dev \
libtag1-dev \
libvorbis-dev \
m4 \
pkg-config
# Update OPAM
RUN opam init --disable-sandboxing -y
RUN opam switch create 4.08.0
RUN opam update -y
RUN opam install depext -y
# Liquidsoap Dependencies
RUN opam depext taglib mad lame vorbis flac opus cry samplerate pulseaudio bjack alsa ssl liquidsoap -y
RUN opam install taglib mad lame vorbis flac opus cry samplerate pulseaudio bjack alsa ssl liquidsoap -y
# Print Debug Information # Print Debug Information
RUN echo $(python3 -V) RUN echo $(python3.8 -V)
RUN echo $(python3.7 -V)
RUN echo $(ls /home/opam/.opam/4.08.0/bin/liquidsoap)
# Setup Engine # Setup Engine
RUN whoami
RUN mkdir -p /srv RUN mkdir -p /srv
RUN mkdir -p /home/opam/audio RUN mkdir -p /var/audio
RUN mkdir -p /home/opam/audio/source RUN mkdir -p /var/audio/source
COPY . /srv COPY . /srv
WORKDIR /srv WORKDIR /srv
ENV PATH="/home/opam/.local/bin:${PATH}" RUN python3.8 $(which pip3) install -r requirements.txt
RUN sudo usermod -a -G audio opam
RUN python3.7 $(which pip3) install -r requirements.txt
COPY configuration/sample-docker.engine.ini /srv/configuration/engine.ini
# Start the Engine # Start the Engine
......
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