Dockerfile 798 B

1234567891011121314151617181920212223242526272829
  1. FROM nginx
  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. RUN mkdir -p /var/www/docs.gethue.com/html
  17. RUN cp -R public/* /var/www/docs.gethue.com/html
  18. RUN chmod -R 755 /var/www/docs.gethue.com
  19. RUN ln -s /etc/nginx/sites-available/docs.gethue.com /etc/nginx/sites-enabled/docs.gethue.com
  20. RUN rm -rf /docs
  21. EXPOSE 80