File tree Expand file tree Collapse file tree 4 files changed +28
-41
lines changed Expand file tree Collapse file tree 4 files changed +28
-41
lines changed Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
2
+ LABEL org.opencontainers.image.authors="Christoph Knittel <ck@cca.io>"
3
+ LABEL org.opencontainers.image.description="Docker image for ReScript development."
4
+
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
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ReScript Compiler" ,
3
3
"build" : {
4
- "context" : " .. " ,
5
- "dockerfile" : " ../docker/ Dockerfile"
4
+ "context" : " ." ,
5
+ "dockerfile" : " Dockerfile"
6
6
},
7
7
"features" : {
8
- "ghcr.io/devcontainers/features/github-cli:1" :{}
8
+ "ghcr.io/devcontainers/features/github-cli:1" :{
9
+ "installDirectlyFromGitHubRelease" : true ,
10
+ "version" : " latest"
11
+ },
12
+ "ghcr.io/devcontainers/features/node:1" : {
13
+ "version" :" 20"
14
+ }
9
15
},
10
16
"customizations" : {
11
17
"vscode" : {
12
18
"extensions" : [
13
19
" chenglou92.rescript-vscode" ,
14
20
" biomejs.biome"
15
- ],
16
- "settings" : {
17
- "terminal.integrated.defaultProfile.linux" : " bash"
18
- }
21
+ ]
19
22
}
20
23
},
21
- "postCreateCommand" : " .devcontainer/postCreate.sh" ,
22
- "remoteUser" : " devuser"
24
+ "postCreateCommand" : " .devcontainer/postCreate.sh"
23
25
}
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/sh
2
+
3
+ # Opam stuff post install
4
+ opam init -y --bare --disable-sandboxing git+https://github.com/rescript-lang/opam-repository
5
+ 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
2
7
3
8
# Install dev dependencies from OPAM
4
9
opam install . --deps-only -y
@@ -7,6 +12,6 @@ opam install . --deps-only -y
7
12
opam install ocaml-lsp-server -y
8
13
9
14
# Add OPAM environment setup to shell startup script
10
- echo ' eval $(opam env)' >> ~ /.bashrc
15
+ echo ' eval $(opam env)' >> ~ /.zshrc
11
16
12
17
npm install --ignore-scripts
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments