You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
598 B
24 lines
598 B
FROM alpine as builder
|
|
|
|
COPY . /opt/
|
|
|
|
WORKDIR /opt
|
|
|
|
RUN apk add --no-cache git hugo make && make build
|
|
|
|
FROM nginx
|
|
|
|
# ARG SHA "local-dev"
|
|
# ARG BUILD_DATE "03-11-2022"
|
|
|
|
LABEL org.opencontainers.image.created ${BUILD_DATE}
|
|
LABEL org.opencontainers.image.source https://git.vdhsn.com/adam/garden.git
|
|
LABEL org.opencontainers.image.url https://git.vdhsn.com/adam/garden
|
|
LABEL org.opencontainers.image.revision ${SHA}
|
|
LABEL org.opencontainers.image.licenses MIT
|
|
LABEL org.opencontainers.image.authors "Adam Veldhousen <adam@vdhsn.com>"
|
|
|
|
COPY --from=builder /opt/public /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|