Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 772 Bytes

README.md

File metadata and controls

55 lines (37 loc) · 772 Bytes

docker-mkdocs

git clone

git clone [email protected]:aisuhua/docker-mkdocs.git
cd docker-mkdocs

build

docker-compose build

Usage

new

docker run --rm -u $UID -v ${PWD}:/docs aisuhua/mkdocs-material:latest new .

run

docker run --rm -p 8000:8000 -u $UID -v ${PWD}:/docs aisuhua/mkdocs-material:latest

build

docker run --rm -u $UID -v ${PWD}:/docs aisuhua/mkdocs-material:latest build

APP

Dockerfile

FROM aisuhua/docker-mkdocs:latest
COPY . /docs
RUN mkdocs build --clean

Build

docker build -t myapp:latest .

Links

  1. docker/build-push-action#33 (comment)
  2. https://github.com/marketplace/actions/build-and-push-docker-images