Git Product home page Git Product logo

Comments (1)

vvitayau avatar vvitayau commented on August 20, 2024

build yourself is more secure,
smaller by leveraging develop-images/multistage-build
using latest alpine, go, consul

less is more to appreciate
copying consul-alerts built on golang onto consul
one third the original size

REPOSITORY              TAG                 IMAGE ID            CREATED              SIZE
consul                  1.8                 6adcb25542ed        27 hours ago         122MB
golang                  1.15.0              75605a415539        2 days ago           839MB
acaleph/consul-alerts   latest              d6b7ee42ef61        19 months ago        427MB
FROM golang:1.15 AS golang
ENV GOPATH /go
WORKDIR /go
RUN go get -v github.com/AcalephStorage/consul-alerts
RUN sed 's/^const version = "\(.\)*"/const version = "latest"/' /go/src/github.com/AcalephStorage/consul-alerts/consul-alerts.go
RUN cd /go/src/github.com/AcalephStorage/consul-alerts
RUN go install github.com/AcalephStorage/consul-alerts

FROM consul:1.8
RUN apk --no-cache add ca-certificates
WORKDIR /bin/
COPY --from=golang /go/bin/consul-alerts .

EXPOSE 9000
CMD []
ENTRYPOINT [ "/bin/consul-alerts", "--alert-addr=0.0.0.0:9000" ]

from consul-alerts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.