Dockerfile for Apache2 Server with OCaml.
Run the following command in your repository to create the docker container.
docker build -t image_name .
docker run -it -d --name container_name image_name
After build completely finishes, enter in a Docker container to set path to opam.
docker exec -i -t container_name bash
eval $(opam env)
- Document root of this image is
/var/www/html
. - If
ocamlyacc: command not found
appear on the screen, runeval $(opam env)
first.
docker build -t OCaml-PHP-Apache-container .
docker run -it -d --name OCaml-PHP-Apache-container -v /foo/bar:/var/www/html -p 80:80 OCaml-PHP-Apache-container