Dockerfile 682 B

1234567891011121314151617181920212223242526272829
  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.58.3/hugo_0.58.3_Linux-64bit.deb
  7. RUN dpkg -i hugo*.deb && rm hugo*.deb
  8. RUN pip install Pygments
  9. COPY tools/docker/nginx/nginx.conf /etc/nginx/nginx.conf
  10. COPY tools/docker/documentation/docs.gethue.com.conf /etc/nginx/sites-available/docs.gethue.com
  11. RUN mkdir /etc/nginx/sites-enabled
  12. # Docs
  13. ADD docs/docs-site /docs
  14. WORKDIR /docs
  15. RUN hugo
  16. FROM nginx:1.17-alpine
  17. COPY --from=build /docs/public /usr/share/nginx/html
  18. EXPOSE 80
  19. CMD ["nginx", "-g", "daemon off;"]