b95fe70b9c
* ci: Use docker multi-stage builds * refactor: Migrate from dep to go mod * ci: Add Makefile to simplify builds * ci: Upgrade to golang 1.11 * refactor: Run goimports for formatting
15 lines
299 B
Docker
15 lines
299 B
Docker
FROM golang:1.11 as build
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN go get -d -v ./...
|
|
RUN go install -v ./...
|
|
|
|
FROM alpine:3.5
|
|
LABEL maintainer "hipages DevOps Team <syd-team-devops@hipagesgroup.com.au>"
|
|
|
|
COPY --from=build /go/bin/php-fpm_exporter /
|
|
|
|
EXPOSE 9253
|
|
ENTRYPOINT [ "/php-fpm_exporter", "server" ]
|