Caddy сервер
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
NeonXP 2023-11-17 18:50:59 +03:00
parent 040f4fe033
commit cfcdb1c884

View file

@ -1,4 +1,4 @@
FROM alpine:latest
FROM alpine:latest AS builder
RUN apk add --no-cache \
ca-certificates \
@ -18,4 +18,12 @@ ARG HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION
RUN wget -q -O- ${HUGO_URL} | tar xz -C /usr/local/bin
ENTRYPOINT [ "hugo" ]
RUN hugo -v
FROM caddy:alpine
COPY --from=builder /app/public/ /usr/share/caddy/
EXPOSE 80
ENTRYPOINT [ "caddy" ]