Asger Gitz-Johansen
e3e9fc0faa
All checks were successful
Release CI action / build-and-push-container (push) Successful in 3m12s
13 lines
377 B
Docker
13 lines
377 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", "blog.gtz.dk" "--bind", "0.0.0.0", "--port", "$PORT"]
|