Dockerfile 512 B

1234567891011121314151617181920212223242526
  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. ARG lang=en
  15. COPY --from=build /gethue/public/${lang} /usr/share/nginx/html
  16. EXPOSE 80
  17. CMD ["nginx", "-g", "daemon off;"]