Skip to content

Commit 2da5374

Browse files
committed
Add Dockerfile for development container
1 parent 8a28daf commit 2da5374

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docker/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM rust:1.80.1-bullseye
2+
LABEL org.opencontainers.image.authors="Christoph Knittel <[email protected]>"
3+
LABEL org.opencontainers.image.description="Docker image for ReScript development."
4+
5+
RUN apt update && apt install -y --no-install-recommends ca-certificates curl git rsync opam musl-tools python3 python-is-python3
6+
7+
# Node.js
8+
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
9+
RUN apt install -y nodejs
10+
11+
# OCaml
12+
RUN opam init -y --bare --disable-sandboxing git+https://github.com/rescript-lang/opam-repository
13+
RUN opam switch create 5.2.0 --packages ocaml-option-static
14+
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

0 commit comments

Comments
 (0)