Skip to content

Commit

Permalink
Update OCaml base image to 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rbergen committed Feb 9, 2024
1 parent 830c990 commit 8dc1985
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM ocaml/opam:alpine-ocaml-4.12
FROM ocaml/opam:alpine-ocaml-5.1

USER root

# hadolint ignore=DL3004
RUN sudo apk add --no-cache linux-headers \
&& opam install ocamlbuild.0.14.0 \
&& opam install core.v0.14.1
RUN apk add --no-cache linux-headers

Check failure on line 6 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`

USER opam

RUN opam install ocamlbuild \
&& opam install core \
&& opam install core_unix

ENV PATH="/home/opam/.opam/4.12/bin:${PATH}"
ENV PATH="/home/opam/.opam/5.1/bin:${PATH}"

0 comments on commit 8dc1985

Please sign in to comment.