blog/Dockerfile

15 lines
297 B
Text
Raw Permalink Normal View History

2022-12-30 19:29:08 +00:00
FROM docker.io/golang:1.19-alpine as builder
2022-09-08 20:55:59 +00:00
2022-12-29 10:46:05 +00:00
WORKDIR /tmp
2022-12-30 19:29:08 +00:00
RUN apk add -U --no-cache hugo git
2022-12-29 10:46:05 +00:00
2022-09-08 20:55:59 +00:00
WORKDIR /src
2022-12-23 14:10:41 +00:00
COPY . /src/
2022-09-08 20:55:59 +00:00
2022-12-29 10:46:05 +00:00
RUN hugo --minify --environment production --config config.toml
2022-12-30 14:11:02 +00:00
FROM code.icb4dc0.de/prskr/ci-images/caddy:latest as final
2022-12-29 10:46:05 +00:00
2022-12-30 14:11:02 +00:00
COPY --from=builder /src/public /usr/share/caddy