blog/Dockerfile
Asger Gitz-Johansen 253f2c9539
Some checks failed
Release CI action / build-and-push-container (push) Has been cancelled
fix: set baseurl
2024-12-02 22:15:04 +01:00

13 lines
368 B
Docker

FROM alpine
RUN apk add hugo git
WORKDIR /hugo
RUN hugo new site /hugo
RUN git clone https://github.com/yihui/hugo-xmin.git themes/hugo-xmin
ADD hugo.toml /hugo/hugo.toml
ADD content /hugo/content
ADD static /hugo/static
ADD shortcodes /hugo/layouts/shortcodes
ENV PORT=1313
EXPOSE $PORT
CMD ["hugo", "serve", "--baseURL", "https://blog.gtz.dk/", "--bind", "0.0.0.0"]