cookbook/Dockerfile

16 lines
266 B
Docker
Raw Normal View History

FROM alpine:3.18 as build
RUN apk add hugo
RUN apk add go
RUN apk add git
COPY . /app
WORKDIR /app
RUN hugo
FROM alpine:3.18
RUN apk add caddy
COPY --from=build /app/public /site
WORKDIR /site
EXPOSE 1313
ENTRYPOINT [ "caddy", "file-server", "--listen", ":1313" ]