- Docker installed (Docker for Mac, Docker for windows, linux, etc)
- Put the
Dockerfile.docs
into the root directory of moviepy, same level assetup.py
- build the moviepy docs image
docker build -t moviepy/docs -f Dockerfile.docs .
- run the moviepy/docs container
docker run -d -p 9000:9000 --name moviepy_docs moviepy/docs
- Go to your browser and connect to
http://localhost:9000
The files are installed in /docs/html
inside of the container.
If already running, you can connect to the running container.
docker exec -it moviepy_docs bash
If the container isn't running already
docker run -it moviepy/docs bash
If you want to copy the compiled docs out of the container to look at them locally.
# change to the directory where you want to have the docs copied to locally
mkdir -p /tmp/moviepy_docs
cd /tmp/moviepy_docs
# this will copy the /docs directory out of the container and into the current directory
docker cp moviepy_docs:/docs .