mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-05-05 17:04:52 -04:00
fix build issues in docker
This commit is contained in:
parent
4586c0622e
commit
c18f6b1cf7
1 changed files with 3 additions and 2 deletions
5
deps/dockerfile.ocaml
vendored
5
deps/dockerfile.ocaml
vendored
|
|
@ -8,7 +8,8 @@ RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends ca-certificates curl git unzip build-essential $BASE_OS_PACKAGES && \
|
apt-get install -y --no-install-recommends ca-certificates curl git unzip build-essential $BASE_OS_PACKAGES && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
curl -fsSL https://github.com/ocaml/opam/releases/download/2.5.0/opam-2.5.0-x86_64-linux -o /usr/local/bin/opam && \
|
curl -fsSL https://github.com/ocaml/opam/releases/download/2.5.0/opam-2.5.0-x86_64-linux -o /usr/local/bin/opam && \
|
||||||
chmod +x /usr/local/bin/opam
|
chmod +x /usr/local/bin/opam && \
|
||||||
|
git config --global --add safe.directory '*'
|
||||||
WORKDIR /root/w
|
WORKDIR /root/w
|
||||||
|
|
||||||
# --- Stage 2: opam-setup (builds the switch, discarded) ---
|
# --- Stage 2: opam-setup (builds the switch, discarded) ---
|
||||||
|
|
@ -33,5 +34,5 @@ RUN opam install --no-depexts $BASE_PACKAGES && \
|
||||||
FROM base
|
FROM base
|
||||||
COPY --from=opam-setup /root/.opam /root/.opam
|
COPY --from=opam-setup /root/.opam /root/.opam
|
||||||
COPY --from=opam-setup /root/w/_opam /root/w/_opam
|
COPY --from=opam-setup /root/w/_opam /root/w/_opam
|
||||||
ENV OPAMSWITCH=/root/w PATH=/root/w/_opam/bin:$PATH
|
ENV OPAMROOT=/root/.opam OPAMSWITCH=/root/w PATH=/root/w/_opam/bin:$PATH
|
||||||
WORKDIR /root/w
|
WORKDIR /root/w
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue