companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<discocaml> <deepspacejohn> Oh, I thought there was going to be a fun Easter egg (like Google sometimes does for some queries)
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #ocaml
torretto_ has quit [Ping timeout: 260 seconds]
torretto has joined #ocaml
euphores has quit [Ping timeout: 265 seconds]
euphores has joined #ocaml
euphores has quit [Client Quit]
euphores has joined #ocaml
bartholin has joined #ocaml
Tuplanolla has joined #ocaml
YuGiOhJCJ has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
euphores has quit [Quit: Leaving.]
<discocaml> <iamjcchan> Hi I'm trying to create a fresh docker image by installing opam on alpine. ```FROM alpine:3.20 AS base
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> FROM base AS builder
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> RUN apk update && \
<discocaml> <iamjcchan> apk upgrade && \
<discocaml> <iamjcchan> apk add opam bash
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> RUN opam init --bare -a -y --disable-sandboxing \
<discocaml> <iamjcchan> && opam update
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> RUN opam switch create default ocaml-base-compiler.5.2.0
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> RUN opam install -y dune
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> WORKDIR /app
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> COPY dune-project dune hello.ml read2.ml ./
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> # eval $(opam config env) applies dune to PATH but it only persists in a single RUN layer
<discocaml> <iamjcchan> RUN eval $(opam config env) \
<discocaml> <iamjcchan> && dune build hello.exe
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> FROM base AS runner
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> WORKDIR /app
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> COPY --from=builder /app/_build/default/hello.exe /app
<discocaml> <iamjcchan>
<discocaml> <iamjcchan> CMD [ "/app/hello.exe" ]```
<discocaml> <iamjcchan> but i getting errors at creating a swicth
<discocaml> <Kali> please do not paste large code blocks into the irc bridge
<discocaml> <Kali> it has to send each line as an individual message
<discocaml> <Kali> ask in #beginners, #advanced-help, or a more specific channel relevant to your question
<discocaml> <iamjcchan> thanks
euphores has joined #ocaml
neuroevolutus has joined #ocaml
neuroevolutus has quit [Ping timeout: 256 seconds]
bartholin has quit [Quit: Leaving]
neuroevolutus has joined #ocaml
neuroevolutus has quit [Ping timeout: 256 seconds]
Tuplanolla has quit [Quit: Leaving.]