Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

24 lignes
512B

  1. FROM alpine:latest as build
  2. ENV HUGO_VERSION 0.59.1
  3. ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
  4. # Install Hugo
  5. RUN set -x && \
  6. apk add --update wget ca-certificates git && \
  7. wget https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} && \
  8. tar xzf ${HUGO_BINARY} && \
  9. rm -r ${HUGO_BINARY} && \
  10. mv hugo /usr/bin
  11. COPY ./ /site
  12. WORKDIR /site
  13. RUN /usr/bin/hugo --gc --minify --enableGitInfo
  14. FROM nginx:alpine
  15. COPY --from=build /site/public /usr/share/nginx/html