diff --git a/Dockerfile b/Dockerfile index 1f2cab1..da42fd4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM git.d3vyce.fr/d3vyce/hugo:latest AS build WORKDIR /opt/blog COPY . /opt/blog/ -RUN git submodule update --init --recursive +RUN git submodule update --init --recursive && git install lfs && git lfs pull RUN hugo diff --git a/README.md b/README.md index 192e85d..beb29de 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,5 @@ export PATH=$PATH:/usr/local/go/bin CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest git submodule update --recursive +git lfs pull ``` \ No newline at end of file diff --git a/hugo.Dockerfile b/hugo.Dockerfile index 262a294..e6b42a8 100644 --- a/hugo.Dockerfile +++ b/hugo.Dockerfile @@ -6,5 +6,5 @@ ENV GOOS=linux ENV GO111MODULE=on RUN apk update && \ - apk add --no-cache gcc musl-dev g++ git + apk add --no-cache gcc musl-dev g++ git git-lfs RUN go install -tags extended github.com/gohugoio/hugo@v0.122.0