blog/Dockerfile

13 lines
331 B
Docker
Raw Normal View History

2024-11-27 20:39:44 +01:00
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
2024-11-28 17:54:37 +01:00
ADD static /hugo/static
ADD shortcodes /hugo/layouts/shortcodes
2024-12-01 09:55:16 +01:00
ENV PORT=1313
EXPOSE $PORT
CMD hugo serve --bind 0.0.0.0 --port $PORT