You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created and tested with the following docker file so that we can build the website locally, which improves our productivity.
# Use the ubuntu image as the base imageFROM ubuntu AS builder
# Install the necessary build dependenciesENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y wget tar bash git golang-go npm nodejs vim
# Set the environment variable for the version of Hugo you want to buildENV HUGO_VERSION=0.111.3
RUN wget -q -O /tmp/hugo_extended.tar.gz \
https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz && \
tar -xzf /tmp/hugo_extended.tar.gz -C /usr/local/bin && \
rm /tmp/hugo_extended.tar.gz
# Hugo dev server portEXPOSE 1313
## Build with the following (in the path of the docker file)# docker build -t my-hugo-extended:latest .## Run with the following (in the path of acssz.github.io)# docker run --rm -it -v $(pwd):/src -p 1313:1313 -w /src my-hugo-extended:latest hugo server --bind 0.0.0.0
I created and tested with the following docker file so that we can build the website locally, which improves our productivity.
The text was updated successfully, but these errors were encountered: