artifacts/Dockerfile
Andriy Knysh f0005fccec Initial implementation (#1)
* Update `LICENSE` and `.gitignore`

* Init

* Update `README`

* Add Helm chart

* Update `README`

* Update chart

* Add `requirements.yaml`

* Update chart

* Update chart

* Update chart

* Update chart

* Update `Go` code

* Update `Go` code

* Update `Go` code

* Update `Go` code

* Update `README`

* Update `README`

* Update `Go` files

* Update `Go` files

* Update `Go` files

* Add Helm chart

* Update chart

* Update `README`

* Update `Go` files

* Update charts

* Update charts

* If AWS credentials are not provided in the command-line arguments or ENV variables, the module will try to assume an IAM Role

* Rename folder

* Update `README`

* Update `README`

* Rename folder

* Update `README`

* Add `requirements.yaml`

* Update chart
2018-03-21 16:19:55 -04:00

13 lines
520 B
Docker

FROM golang:1.10.0 as builder
RUN mkdir -p /go/src/github.com/cloudposse/prometheus-to-cloudwatch
WORKDIR /go/src/github.com/cloudposse/prometheus-to-cloudwatch
COPY . .
RUN go get && CGO_ENABLED=0 go build -v -o "./dist/bin/prometheus-to-cloudwatch" *.go
FROM alpine:3.7
RUN apk add --no-cache ca-certificates
COPY --from=builder /go/src/github.com/cloudposse/prometheus-to-cloudwatch/dist/bin/prometheus-to-cloudwatch /usr/bin/prometheus-to-cloudwatch
ENV PATH $PATH:/usr/bin
ENTRYPOINT ["prometheus-to-cloudwatch"]