Dockerfile 464 B

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