Skip to content

yokoyama-lab/OCaml-PHP-Apache2_Image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

OCaml-PHP-Apache2_Image

Dockerfile for Apache2 Server with OCaml.

Usage

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)

Note

  • Document root of this image is /var/www/html .
  • If ocamlyacc: command not found appear on the screen, run eval $(opam env) first.

Example

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

About

Dockerfile for Apache2 Server with OCaml.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published