Skip to content

Instantly share code, notes, and snippets.

@Yamakaky
Created July 9, 2019 09:06
Show Gist options
  • Save Yamakaky/5d243ecf88c0c9ee1f71c6b4e202e835 to your computer and use it in GitHub Desktop.
Save Yamakaky/5d243ecf88c0c9ee1f71c6b4e202e835 to your computer and use it in GitHub Desktop.
from ocaml/opam2:alpine-3.10 as builder
copy deps deps
run sed -i '/#/d' deps
run wget http://downloads.sourceforge.net/liblo/liblo-0.30.tar.gz && \
tar xf liblo* && \
cd liblo-0.30 && \
./configure && \
make && \
sudo make install && \
mkdir -p /home/opam/ls/lib/ && \
cp /usr/local/lib/liblo* /home/opam/ls/lib/ && \
cd .. && \
rm -rf liblo*
run opam pin -n https://github.com/Yamakaky/ocaml-mm.git#patch-1 && \
opam pin -n https://github.com/Yamakaky/ocaml-lo.git#patch-1 && \
opam pin -n https://github.com/savonet/liquidsoap.git#1.4.0-beta2 && \
sudo apk add --no-cache automake autoconf && \
opam depext $(cat deps) && \
opam install --destdir=/home/opam/ls $(cat deps) && \
opam depext -ln $(cat deps) > /home/opam/depexts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment