Build latest Hugo Docker image based on ubuntu:latest
2.6K
Build latest Hugo Docker image based on ubuntu:latest
git clone https://github.com/eallion/docker-hugo
./hugo.sh
.deb at Hugo Releases mannerly, save it into ./tmp folder named hugo.deb.
eallionis my Docker hub username.
docker build -t eallion/hugo .
Warning
Don't forget the dot.at the end.
Test the image:
docker run --rm -it eallion/hugo hugo version
You will get the message like this:
hugo v0.105.0-0e3b42b4a9bdeb4d866210819fc6ddcf51582ffa linux/amd64 BuildDate=2022-10-28T12:29:05Z VendorInfo=gohugoio
docker login -u eallion
Then enter the Docker hub token
docker push eallion/hugo:latest
Note
You need to generate your own<PASSWORD>
docker login -u <USERNAME> -p <PASSWORD> eallion-docker.pkg.coding.net
docker tag eallion/hugo:latest eallion-docker.pkg.coding.net/eallion/hugo/hugo:latest
docker push eallion-docker.pkg.coding.net/eallion/hugo/hugo:latest
docker pull eallion-docker.pkg.coding.net/eallion/hugo/hugo:latest
docker login -u <USERNAME> registry.cn-shanghai.aliyuncs.com
docker tag eallion/hugo:latest registry.cn-shanghai.aliyuncs.com/eallion/hugo:latest
docker push registry.cn-shanghai.aliyuncs.com/eallion/hugo:latest
docker pull registry.cn-shanghai.aliyuncs.com/eallion/hugo:latest
Content type
Image
Digest
sha256:d7916b1d8…
Size
118.8 MB
Last updated
almost 2 years ago
docker pull eallion/hugo