# Build cli binary
RUN make cli VERSION=$VERSION COMMIT=$COMMIT BUILD=$BUILD
+# Tools
+FROM golang:alpine AS tools
+
+RUN go install github.com/tdewolff/minify/v2/cmd/minify@latest
+RUN go install go.mills.io/static/cmd/static@latest
+
# Runtime
FROM alpine:latest
WORKDIR /data
COPY --from=build /src/zs /usr/local/bin/zs
+COPY --from=tools /go/bin/minify /usr/local/bin/minify
+COPY --from=tools /go/bin/static /usr/local/bin/static
COPY .dockerfiles/entrypoint.sh /init
@./preflight.sh
deps: ## Install any required dependencies
- @$(GOCMD) install github.com/tdewolff/minify/v2/cmd/minify@latest
- @$(GOCMD) install go.mills.io/static/cmd/static@latest
dev : DEBUG=1
dev : build ## Build debug version of zs (cli)