summaryrefslogtreecommitdiff
path: root/vendor/github.com/tdewolff/minify/v2/Dockerfile
blob: fe3676b067c482882c3f2a0fe1dc6e783c624766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Use this image to build the executable
FROM golang:1.16-alpine AS compiler

RUN apk add --no-cache git ca-certificates make

WORKDIR $GOPATH/src/minify
COPY . .

RUN /usr/bin/env bash -c make install

# Final image containing the executable from the previous step
FROM alpine:3

COPY --from=compiler /bin/minify /bin/minify