From 907b425c1426bf6288f60fe8926eb6eb5546dd32 Mon Sep 17 00:00:00 2001 From: Erik Martin-Dorel Date: Tue, 9 Apr 2024 21:03:06 +0200 Subject: [PATCH] fix(docker): Add missing alpine package (lsof) This makes it possible to fix the error: ``` Waiting for process 9 to terminate... 0 Error: process didn't terminate in time ``` triggered by either `--serve-during-build` or `--replace` CLI options. --- Dockerfile | 2 +- Dockerfile.test-server | 2 +- learn-ocaml.opam | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 126d0b2c1..270f8a15c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,7 +48,7 @@ ENTRYPOINT ["dumb-init","/usr/bin/learn-ocaml-client"] FROM alpine:3.13 as program RUN apk update \ - && apk add ncurses-libs libev dumb-init git openssl \ + && apk add ncurses-libs libev dumb-init git openssl lsof \ && addgroup learn-ocaml \ && adduser learn-ocaml -DG learn-ocaml diff --git a/Dockerfile.test-server b/Dockerfile.test-server index 43b0fe50e..063b1d559 100644 --- a/Dockerfile.test-server +++ b/Dockerfile.test-server @@ -54,7 +54,7 @@ LABEL org.label-schema.build-date="${BUILD_DATE}" \ org.label-schema.schema-version="1.0" RUN apk update \ - && apk add ncurses-libs libev dumb-init git openssl \ + && apk add ncurses-libs libev dumb-init git openssl lsof \ && addgroup learn-ocaml \ && adduser learn-ocaml -DG learn-ocaml diff --git a/learn-ocaml.opam b/learn-ocaml.opam index 9cafcb111..ceb0613f2 100644 --- a/learn-ocaml.opam +++ b/learn-ocaml.opam @@ -17,6 +17,9 @@ license: "MIT" homepage: "https://github.com/ocaml-sf/learn-ocaml" bug-reports: "https://github.com/ocaml-sf/learn-ocaml/issues" dev-repo: "git+https://github.com/ocaml-sf/learn-ocaml" +depexts: [ + ["lsof"] {os-distribution = "alpine"} +] depends: [ "asak" { >= "0.4"} "base64"