Hugoserver Docker Image
Here is a basic Dockerfile for my Hugoserver:
FROM ubuntu:20.04
ENV GOPATH=$HOME/go
ENV GOROOT=/hugoserver/bin/go
ENV PATH=/hugoserver/bin/go/bin:$HOME/go/bin:$PATH
# Update Ubuntu Software repository; (updates || clean up) optional
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get autoremove -y
# Install required linux utilities
RUN apt-get install -y apt-utils rsync curl apt-transport-https ca-certificates gnupg
# Install Build utilities
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git build-essential make software-properties-common
# Install Node
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs
# Install Go
RUN curl -o go.tar.gz https://dl.google.com/go/go1.16.$(uname -s)-amd64.tar.gz && \
rm -rf /hugoserver/bin/go && \
mkdir -p /hugoserver/bin && \
tar -C /hugoserver/bin -xzf go.tar.gz && \
go env
# Install Hugo
RUN go get -u github.com/gohugoio/hugo