minify/Dockerfile

11 lines
349 B
Text
Raw Normal View History

2023-05-17 19:37:01 +00:00
FROM docker.io/golang:1.20.4-alpine3.18 as builder
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
WORKDIR /usr/src
ARG VERSION
RUN wget -qO- https://github.com/tdewolff/minify/archive/refs/tags/v${VERSION}.tar.gz | tar xzf -
WORKDIR /usr/src/minify-${VERSION}
RUN go install ./cmd/minify
2023-05-18 08:55:26 +00:00
FROM scratch
2023-05-17 19:37:01 +00:00
COPY --from=builder /go/bin/minify /usr/local/bin