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 9, 2024
1 parent 94b7d4b commit 895ed6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN opam install . --destdir /home/opam/install-prefix --locked
FROM alpine:3.13 as client

RUN apk update \
&& apk add ncurses-libs libev dumb-init openssl \
&& apk add ncurses-libs libev dumb-init openssl lsof \
&& addgroup learn-ocaml \
&& adduser learn-ocaml -DG learn-ocaml

Expand All @@ -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-client
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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 openssl \
&& apk add ncurses-libs libev dumb-init 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

0 comments on commit 895ed6f

Please sign in to comment.