summaryrefslogtreecommitdiff
path: root/vendor/github.com/tdewolff/minify/v2/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/tdewolff/minify/v2/Dockerfile')
-rw-r--r--vendor/github.com/tdewolff/minify/v2/Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/tdewolff/minify/v2/Dockerfile b/vendor/github.com/tdewolff/minify/v2/Dockerfile
index 6cc2de9cc..fe3676b06 100644
--- a/vendor/github.com/tdewolff/minify/v2/Dockerfile
+++ b/vendor/github.com/tdewolff/minify/v2/Dockerfile
@@ -1,12 +1,12 @@
# 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 apk add --update --update-cache --no-cache git ca-certificates && \
- GO111MODULES=on CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o /bin/minify ./cmd/minify
-
+RUN /usr/bin/env bash -c make install
# Final image containing the executable from the previous step
FROM alpine:3