You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 391B

123456789101112131415161718
  1. ##
  2. ## Step 1 - add content and build with Hugo
  3. ##
  4. FROM r.c5h.io/hugo as hugo
  5. ADD . /tmp/site
  6. RUN hugo -b https://kb.chameth.com/ -v -s /tmp/site -d /tmp/hugo && \
  7. cp /tmp/hugo/index.xml /tmp/hugo/feed.xml
  8. ##
  9. ## Step 3 - host!
  10. ##
  11. FROM nginx:mainline-alpine AS nginx
  12. RUN rm -rf /usr/share/nginx/html/*
  13. COPY --from=hugo /tmp/hugo /usr/share/nginx/html
  14. ADD nginx.conf /etc/nginx/nginx.conf