@@ -10,8 +10,8 @@ FROM ruby:3.3.7
1010ARG TARGETPLATFORM
1111
1212# # NOTE: installing beta version of mkdocs-material with blog support.
13- LABEL version="1.5.8 " \
14- mode="sitebuilder-1.5.8 " \
13+ LABEL version="1.5.9 " \
14+ mode="sitebuilder-1.5.9 " \
1515 author="Samirkumar Amin" \
1616 description="docker image to build jekyll, hugo or mkdocs supported website" \
1717 website="https://github.com/sbamin/sitebuilder" \
@@ -38,9 +38,10 @@ RUN apt-get update && \
3838ENV LC_ALL="C.UTF-8"
3939ENV LANG="en_US.UTF-8"
4040ENV LANGUAGE="en_US.UTF-8"
41- ENV myhugo="0.153.2"
42- ENV mygo="1.25.5"
43- ENV mydartsass="1.97.1"
41+ ENV myhugo="0.155.3"
42+ ENV mygo="1.26.0"
43+ ENV mydartsass="1.97.3"
44+ ENV mypagefind="v1.5.0-beta.1"
4445
4546# ### Python 3 venv ####
4647# Create and activate a Python virtual environment
@@ -54,20 +55,21 @@ ENV PATH="/opt/venv/bin:$PATH"
5455# # This may differ based on gems and plugins used
5556COPY Gemfile /tmp/
5657
58+ # # jekyll setup
5759RUN mkdir -p /scratch && \
5860 mv /tmp/Gemfile /scratch/ && \
5961 cd /scratch && \
6062 bundle install && \
6163 mkdir -p /web
6264
63- # ### git ####
65+ # # git
6466RUN apt-get install -y python3-launchpadlib && \
6567 add-apt-repository ppa:git-core/ppa && \
6668 apt-get update && \
6769 apt-get install -y python3-launchpadlib git && \
6870 git --version
6971
70- # ### Hugo, MkDocs, and theme- mkdocs-material ####
72+ # ### MkDocs, mkdocs-material, hugo ####
7173# # https://github.com/squidfunk/mkdocs-material
7274# # issue with Hash Sum mismatch
7375RUN rm -rf /var/lib/apt/lists/partial && \
@@ -77,18 +79,16 @@ RUN rm -rf /var/lib/apt/lists/partial && \
7779 pip3 install --upgrade singledispatch nltk six && \
7880 pip3 install markdown pygments fontawesome_markdown pymdown-extensions && \
7981 pip3 install "mkdocs-material[imaging,recommended,git]" && \
80- pip3 install mkdocs mkdocs-material mkdocs-git-revision-date-plugin mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin mkdocs-redirects pymdown-extensions mkdocs-macros-plugin mike mkdocs-git-authors-plugin mkdocs-glightbox && \
82+ pip3 install mkdocs mkdocs-material mkdocs-git-revision-date-plugin mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin mkdocs-redirects pymdown-extensions mkdocs-macros-plugin mike mkdocs-git-authors-plugin mkdocs-glightbox mkdocstrings mkdocstrings-python mkdocstrings-shell mkquartodocs && \
8183 # # force update mkdocs env
8284 pip3 install --upgrade "mkdocs-material[imaging,recommended,git]" && \
8385 pip3 install --upgrade markdown pygments fontawesome_markdown pymdown-extensions && \
84- pip3 install --upgrade mkdocs mkdocs-material mkdocs-git-revision-date-plugin mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin mkdocs-redirects pymdown-extensions mkdocs-macros-plugin mike mkdocs-git-authors-plugin mkdocs-glightbox mkdocstrings mkdocstrings-python mkdocstrings-shell && \
85- git config --global --add safe.directory /web
86-
87- # # install latest hugo extended, including GO
88- # # requires OS arch variable
89- RUN case "$TARGETPLATFORM" in \
90- "linux/amd64" ) ARCH="amd64" ; ARCH2="x64" ;; \
91- "linux/arm64" ) ARCH="arm64" ; ARCH2="arm64" ;; \
86+ pip3 install --upgrade mkdocs mkdocs-material mkdocs-git-revision-date-plugin mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin mkdocs-redirects pymdown-extensions mkdocs-macros-plugin mike mkdocs-git-authors-plugin mkdocs-glightbox mkdocstrings mkdocstrings-python mkdocstrings-shell mkquartodocs && \
87+ git config --global --add safe.directory /web && \
88+ # # install latest hugo extended, including GO, dart-sass, and pagefind
89+ case "$TARGETPLATFORM" in \
90+ "linux/amd64" ) ARCH="amd64" ; ARCH2="x64" ; ARCH3="x86_64" ;; \
91+ "linux/arm64" ) ARCH="arm64" ; ARCH2="arm64" ; ARCH3="aarch64" ;; \
9292 *) echo "Unsupported architecture: $TARGETPLATFORM" && exit 1 ;; \
9393 esac && \
9494 echo "Building for ARCH=$ARCH" && \
@@ -105,6 +105,9 @@ RUN case "$TARGETPLATFORM" in \
105105 chmod 775 /opt/dart && \
106106 tar -C /opt/dart -xvzf dart-sass-${mydartsass}-linux-${ARCH2}-musl.tar.gz && \
107107 mv -f /opt/dart/dart-sass /opt/dart/bin && \
108+ # # install pagefid
109+ cd /usr/local/bin && \
110+ curl -sL https://github.com/Pagefind/pagefind/releases/download/${mypagefind}/pagefind-${mypagefind}-${ARCH3}-unknown-linux-musl.tar.gz | tar xz && chmod 755 pagefind && \
108111 apt-get clean && \
109112 rm -f go${mygo}.linux-${ARCH}.tar.gz && \
110113 rm -f dart-sass-${mydartsass}-linux-${ARCH2}-musl.tar.gz && \
0 commit comments