docs/Dockerfile

16 lines
354 B
Text
Raw Normal View History

2022-12-30 14:31:29 +00:00
FROM docker.io/golang:1.19-alpine as builder
WORKDIR /tmp
RUN apk add -U --no-cache hugo git
WORKDIR /src
COPY . /src/
RUN hugo --minify --environment production --config config.toml
FROM code.icb4dc0.de/prskr/ci-images/caddy:latest as final
2022-12-30 16:03:51 +00:00
COPY --from=builder /src/public /usr/share/caddy/docs/
COPY deploy/caddy/caddy.json /etc/caddy/caddy.json