Open1

dockerでmkdocs環境を作る

yoshiyasu1111yoshiyasu1111
Dockerfile
FROM python:3.10.6-bullseye

RUN adduser -q --gecos "" --disabled-login mkuser \
    && pip install mkdocs mkdocs-material fontawesome-markdown mdx_unimoji python-markdown-math pymdown-extensions
docker-compose.yml
version: '3'
services:

  mkdocs:
    build:
      context: .
      dockerfile: Dockerfile
    image: mkdocs
    container_name: mkdocs
    volumes:
      - ${PWD}:/docs
    working_dir: /docs
    tty: true
    command: /bin/bash
    ports:
      - 8080:8080