Skip to content
Snippets Groups Projects
Dockerfile 522 B
Newer Older
  • Learn to ignore specific revisions
  • ddamiron's avatar
    ddamiron committed
    
    
    ddamiron's avatar
    ddamiron committed
    
    # Set build directory
    WORKDIR /app
    
    
    COPY requirements.txt .
    RUN pip install -r requirements.txt
    
    
    ddamiron's avatar
    ddamiron committed
    # add the current directory to the container as /app
    
    ddamiron's avatar
    ddamiron committed
    # Perform build and cleanup artifacts
    
    # RUN pip install mkdocs && pip install mkdocs-material && pip install plantuml-markdown
    
    
    # build the documentation site
    RUN mkdocs build
    
    COPY --from=builder /app/site /usr/share/nginx/html
    RUN ls -l /usr/share/nginx/html
    EXPOSE 80