docs/Dockerfile
Peter Kurfer 9c827c14cd
Some checks reported errors
continuous-integration/drone Build was killed
Initial commit
2023-04-17 16:11:49 +02:00

18 lines
No EOL
400 B
Docker

FROM docker.io/golang:1.20-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
COPY --from=builder /src/public /usr/share/caddy/docs/
COPY deploy/caddy/Caddyfile /etc/caddy/Caddyfile
CMD [ "run", "--config=/etc/caddy/Caddyfile" ]