This commit is contained in:
parent
040f4fe033
commit
cfcdb1c884
1 changed files with 10 additions and 2 deletions
12
Dockerfile
12
Dockerfile
|
@ -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" ]
|
Loading…
Reference in a new issue