Skip to content
Snippets Groups Projects
Dockerfile 450 B
Newer Older
  • Learn to ignore specific revisions
  • ddamiron's avatar
    ddamiron committed
    
    FROM python:3.6.8-alpine3.9
    
    # Set build directory
    WORKDIR /app
    
    # add the current directory to the container as /app
    ADD . /docs
    # Perform build and cleanup artifacts
    
    ddamiron's avatar
    ddamiron committed
    RUN pip install mkdocs && pip install  mkdocs-material && pip install plantuml-markdown
    
    ddamiron's avatar
    ddamiron committed
    
    # Set working directory
    WORKDIR /docs
    
    # Expose MkDocs development server port
    EXPOSE 8000
    
    # Start development server by default
    ENTRYPOINT ["mkdocs"]
    CMD ["serve", "--dev-addr=0.0.0.0:8000"]