Dockerfile 692 B

123456789101112131415161718192021222324252627282930
  1. FROM ubuntu:18.04 as build
  2. LABEL description="Hue documentation docs.gethue.com"
  3. RUN apt-get update -y && apt-get install -y \
  4. wget \
  5. python-pip
  6. RUN wget https://github.com/gohugoio/hugo/releases/download/v0.62.0/hugo_0.62.0_Linux-64bit.deb \
  7. && dpkg -i hugo*.deb \
  8. && rm hugo*.deb \
  9. && pip install Pygments
  10. COPY tools/docker/nginx/nginx.conf /etc/nginx/nginx.conf
  11. COPY tools/docker/documentation/docs.gethue.com.conf /etc/nginx/sites-available/docs.gethue.com
  12. RUN mkdir /etc/nginx/sites-enabled
  13. # Docs
  14. ADD docs/docs-site /docs
  15. WORKDIR /docs
  16. RUN hugo
  17. FROM nginx:1.17-alpine
  18. COPY --from=build /docs/public /usr/share/nginx/html
  19. EXPOSE 80
  20. CMD ["nginx", "-g", "daemon off;"]