diff --git a/Dockerfile b/Dockerfile index 38b5dfa..98224b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,9 @@ RUN apk add --no-cache hugo git # Copy the repository contents COPY . . -# Initialize submodules if not done -RUN git submodule update --init +# Initialize and update submodules +RUN git submodule init && \ + git submodule update --init --recursive # Build the site RUN hugo --minify