Skip to content

Commit

Permalink
fix(docker): Add missing alpine package (lsof)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
erikmd committed Apr 19, 2024
1 parent 2784290 commit cc6caa3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.test-server
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions learn-ocaml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cc6caa3

Please sign in to comment.