Skip to content

Commit 29599a1

Browse files
committed
Move opam install to postCreate
1 parent adebdc0 commit 29599a1

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
22
LABEL org.opencontainers.image.authors="Christoph Knittel <ck@cca.io>"
33
LABEL org.opencontainers.image.description="Docker image for ReScript development."
44

5-
RUN apt update && apt install -y --no-install-recommends opam musl-tools python-is-python3
6-
7-
# OCaml
8-
# RUN opam init -y --bare --disable-sandboxing git+https://github.com/rescript-lang/opam-repository
9-
# RUN opam switch create 5.2.0 --packages ocaml-option-static
10-
# RUN opam install -y dune cppo=1.6.9 js_of_ocaml-compiler=5.8.1 ocamlformat=0.26.2 ounit2=2.2.7 reanalyze=2.25.1
5+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6+
&& apt-get -y install --no-install-recommends \
7+
opam \
8+
musl-tools \
9+
python-is-python3 \
10+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/postCreate.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/bin/sh
22

3-
# Opam stuff post install
3+
# Install dev dependencies from OPAM
44
opam init -y --bare --disable-sandboxing git+https://github.com/rescript-lang/opam-repository
55
opam switch create 5.2.0 --packages ocaml-option-static
6-
opam install -y dune cppo=1.6.9 js_of_ocaml-compiler=5.8.1 ocamlformat=0.26.2 ounit2=2.2.7 reanalyze=2.25.1
7-
8-
# Install dev dependencies from OPAM
96
opam install . --deps-only -y
107

118
# For IDE support, install the OCaml language server

0 commit comments

Comments
 (0)