From 2ac4926ffce500eef1e8c485d6e3e14e3813bda5 Mon Sep 17 00:00:00 2001 From: PhasecoreX Date: Fri, 16 Aug 2024 08:54:53 -0400 Subject: [PATCH] Fix build --- .gitignore | 1 + Dockerfile | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fee2115 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ignore/ diff --git a/Dockerfile b/Dockerfile index 8a386af..6c9c3c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,14 @@ -FROM ocaml/opam:debian-12-ocaml-4.14 as builder +FROM ocaml/opam:debian-12-ocaml-4.14 AS builder ENV PACKAGES="taglib mad lame vorbis cry samplerate opus fdkaac faad flac ocurl liquidsoap" +USER root + +RUN set -eux; \ + sed -i 's/^Components:.*/Components: main contrib non-free/g' /etc/apt/sources.list.d/debian.sources; \ + apt-get update + RUN set -eux; \ - sudo sed -i 's/^Components:.*/Components: main contrib non-free/g' /etc/apt/sources.list.d/debian.sources; \ - sudo apt-get update; \ - opam pin -ny git+https://github.com/savonet/ocaml-flac; \ opam depext --install $PACKAGES RUN set -eux; \