Go packages import redirector done right.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
685B

  1. FROM golang:1.13.1-alpine AS build
  2. WORKDIR /go/src/sources.dev.pztrn.name/pztrn/giredore
  3. COPY . .
  4. ENV CGO_ENABLED=0
  5. RUN cd /go/src/sources.dev.pztrn.name/pztrn/giredore/cmd/giredored && go build -tags netgo -ldflags '-w -extldflags "-static"' && cd ../giredorectl && go build -tags netgo -ldflags '-w -extldflags "-static"'
  6. FROM alpine:latest
  7. LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
  8. COPY --from=build /go/src/sources.dev.pztrn.name/pztrn/giredore/cmd/giredored/giredored /usr/local/bin/giredored
  9. COPY --from=build /go/src/sources.dev.pztrn.name/pztrn/giredore/cmd/giredorectl/giredorectl /usr/local/bin/giredorectl
  10. EXPOSE 62222
  11. ENTRYPOINT [ "/usr/local/bin/giredored" ]