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

Latest working Dockerfile dependencies.

parent 798316b8
No related branches found
No related tags found
No related merge requests found
FROM python:3.7.7-buster
###--- Python Stage ---###
FROM python:3.7.7-buster
LABEL maintainer="David Trattnig <david.trattnig@subsquare.at>" LABEL maintainer="David Trattnig <david.trattnig@subsquare.at>"
RUN sed -i "s#deb http://http.us.debian.org/debian buster main contrib non-free#deb http://http.us.debian.org/debian buster main contrib non-free#g" /etc/apt/sources.list
RUN set -ex \ RUN set -ex \
&& rm -f /usr/bin/python && ln -s /usr/local/bin/python /usr/bin/python \ && rm -f /usr/bin/python && ln -s /usr/local/bin/python /usr/bin/python \
&& rm -f /usr/bin/python3 && ln -s /usr/local/bin/python3 /usr/bin/python3 && rm -f /usr/bin/python3 && ln -s /usr/local/bin/python3 /usr/bin/python3
# System Package Installation
RUN set -ex \ 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 \
...@@ -30,7 +35,9 @@ RUN set -ex \ ...@@ -30,7 +35,9 @@ RUN set -ex \
COPY configuration/sample-docker.engine.ini configuration/engine.ini COPY configuration/sample-docker.engine.ini configuration/engine.ini
COPY configuration/sample-docker.gunicorn.conf.py configuration/gunicorn.conf.py COPY configuration/sample-docker.gunicorn.conf.py configuration/gunicorn.conf.py
# OPAM / Liquidsoap Installation
###--- OPAM / Liquidsoap Stage ---###
FROM ocaml/opam2:latest FROM ocaml/opam2:latest
# Liquidsoap Dependencies # Liquidsoap Dependencies
...@@ -38,6 +45,6 @@ RUN opam init --disable-sandboxing -y ...@@ -38,6 +45,6 @@ RUN opam init --disable-sandboxing -y
RUN opam switch create 4.08.0 RUN opam switch create 4.08.0
RUN opam update -y RUN opam update -y
RUN opam install depext -y RUN opam install depext -y
RUN opam depext taglib mad lame vorbis fdkaac flac opus cry samplerate pulseaudio bjack alsa liquidsoap -y RUN opam depext taglib mad lame vorbis flac opus cry samplerate pulseaudio bjack alsa liquidsoap -y
RUN opam install taglib mad lame vorbis fdkaac flac opus cry samplerate pulseaudio bjack alsa liquidsoap -y RUN opam install taglib mad lame vorbis flac opus cry samplerate pulseaudio bjack alsa liquidsoap -y
RUN eval $(opam env) RUN eval $(opam env)
\ No newline at end of file
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