Sign inSign up

holyshared/ocaml

By holyshared

•Updated about 7 years ago

Docker container for OCaml package build

Image
0

1.2K

holyshared/ocaml repository overview

⁠ocaml-docker

⁠Environments

  • User in container - develop
  • Workking directory - /home/develop/project
  • OCaml compiler 4.09.0
  • OPAM 2.x.x

⁠Basis usage

  1. Create build script

    Create a script for build.

    #!/usr/bin/env bash
    
    eval `opam config env`
    
    opam install -y cohttp
    
  2. Execute build script on docker container

    Specify the -v option, mount the directory on the host side, and execute the script.

    docker run -v `pwd`:/home/develop/project holyshared/ocaml:latest ./[build script]
    

Tag summary

Content type

Image

Digest

Size

423.5 MB

Last updated

about 7 years ago

docker pull holyshared/ocaml