https://github.com/codewars/ocaml
Container image for OCaml
https://github.com/codewars/ocaml
code-runner code-runner-image
Last synced: 3 months ago
JSON representation
Container image for OCaml
- Host: GitHub
- URL: https://github.com/codewars/ocaml
- Owner: codewars
- License: mit
- Created: 2022-02-15T03:16:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T04:22:19.000Z (about 2 years ago)
- Last Synced: 2025-01-10T05:35:58.069Z (4 months ago)
- Topics: code-runner, code-runner-image
- Language: OCaml
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 7
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OCaml Image
Container image for OCaml used by CodeRunner.
## Usage
```bash
W=/workspace
# Create container
BUILD="ocamlbuild -quiet -use-ocamlfind cwtest.native"
C=$(docker container create --rm -w $W ghcr.io/codewars/ocaml:latest sh -c "$BUILD && exec ./cwtest.native")# Copy solution and test files
docker container cp ${1:-examples/basic}/. $C:$W# Start
docker container start --attach $C
```## Building
```bash
docker build -t ghcr.io/codewars/ocaml:latest .
```