Browse Source

pull in a newer base image & compiler for httpaf (#7823)

Robin Björklin 2 years ago
parent
commit
3de6de5fbf
1 changed files with 3 additions and 26 deletions
  1. 3 26
      frameworks/OCaml/httpaf/httpaf.dockerfile

+ 3 - 26
frameworks/OCaml/httpaf/httpaf.dockerfile

@@ -1,37 +1,14 @@
 # -*- mode: dockerfile -*-
 
-FROM alpine:3.15
+# https://github.com/rbjorklin/techempower-ocaml-image
+# Use pre-built image with all dependencies for faster test times
+FROM rbjorklin/techempower-ocaml-image:4.14.1-4bf86567
 
 # https://caml.inria.fr/pub/docs/manual-ocaml/libref/Gc.html
 # https://linux.die.net/man/1/ocamlrun
 # https://blog.janestreet.com/memory-allocator-showdown/
 ENV OCAMLRUNPARAM a=2,o=240
 
-RUN apk add --no-cache \
-    bash\
-    bubblewrap\
-    coreutils\
-    gcc\
-    git\
-    libev-dev\
-    libffi-dev\
-    linux-headers\
-    m4\
-    make\
-    musl-dev\
-    opam\
-    postgresql-dev
-
-RUN opam init\
-    --disable-sandboxing\
-    --auto-setup\
-    --compiler ocaml-base-compiler.4.13.1
-
-RUN opam install -y opam-depext
-RUN \
-  opam depext -y dune conf-libev httpaf httpaf-lwt-unix lwt yojson && \
-  opam install -y dune conf-libev httpaf httpaf-lwt-unix lwt yojson
-
 COPY . /app
 
 WORKDIR /app