Dockerfile 492 B

12345678910111213141516171819202122232425
  1. FROM ubuntu:18.04 as build
  2. LABEL description="gethue.com website"
  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. ADD gethue /gethue
  11. WORKDIR /gethue
  12. RUN hugo --baseURL ""
  13. FROM nginx:1.17-alpine
  14. COPY --from=build /gethue/public /usr/share/nginx/html
  15. EXPOSE 80
  16. CMD ["nginx", "-g", "daemon off;"]