Skip to content

codewars/ocaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCaml Image

Container image for OCaml used by CodeRunner.

Usage

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

docker build -t ghcr.io/codewars/ocaml:latest .