My version of hugo docker image
My Hugo docker images
This Docker images simply pulls everything in my GIT repo where hugo blog is located.
1
2
3
4
5
6
7
8
9
10
11
|
FROM ubuntu:18.04
MAINTAINER joonas.tikkanen91@gmail.com
ARG VERSION=0.62.0
ARG APITOKEN=abcdef123456789
RUN apt-get update && apt install curl unzip wget git -y
RUN wget https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_${VERSION}_Linux-64bit.deb && dpkg -i ./hugo_${VERSION}_Linux-64bit.deb
RUN git clone --recurse-submodule https://oauth2:${APITOKEN}@git.joonastikkanen.fi/joonas/hugo-blog.git /srv/blog
WORKDIR /srv/blog
|
The docker-compose file:
1
2
3
4
5
6
7
8
|
version: "2"
services:
hugo:
container_name: hugo-blog
build: ./hugo
command: hugo server --baseUrl https://blog.joonastikkanen.fi --bind 0.0.0.0 --appendPort=false
ports:
- 1313:1313
|
To put Hugo blog to run:
1
2
|
sudo docker-compose build
sudo docker-compose run -d
|