Dockerfile (464B)
1 # Use this image to build the executable 2 FROM golang:1.18-alpine AS build 3 4 WORKDIR /go/src/github.com/tdewolff/minify 5 COPY . /go/src/github.com/tdewolff/minify/ 6 7 RUN apk add --no-cache git ca-certificates make bash 8 RUN /usr/bin/env bash -c make install 9 10 11 # Final image containing the executable from the previous step 12 FROM alpine:3 13 14 COPY --from=build /go/bin/minify /usr/bin/minify 15 COPY "containerfiles/container-entrypoint.sh" "/init.sh" 16 17 ENTRYPOINT ["/init.sh"]