Dockerfile 927 B

1234567891011121314151617181920212223242526
  1. FROM python:3.7.3-alpine3.9 as borgmatic
  2. COPY . /app
  3. RUN pip install --no-cache /app && generate-borgmatic-config && chmod +r /etc/borgmatic/config.yaml
  4. RUN borgmatic --help > /command-line.txt
  5. FROM node:11.15.0-alpine as html
  6. WORKDIR /source
  7. RUN npm install @11ty/eleventy \
  8. @11ty/eleventy-plugin-syntaxhighlight \
  9. @11ty/eleventy-plugin-inclusive-language \
  10. markdown-it \
  11. markdown-it-anchor \
  12. markdown-it-replace-link
  13. COPY --from=borgmatic /etc/borgmatic/config.yaml /source/docs/_includes/borgmatic/config.yaml
  14. COPY --from=borgmatic /command-line.txt /source/docs/_includes/borgmatic/command-line.txt
  15. COPY . /source
  16. RUN npx eleventy --input=/source/docs --output=/output/docs \
  17. && mv /output/docs/index.html /output/index.html
  18. FROM nginx:1.16.0-alpine
  19. COPY --from=html /output /usr/share/nginx/html
  20. COPY --from=borgmatic /etc/borgmatic/config.yaml /usr/share/nginx/html/docs/reference/config.yaml