php-fpm-exporter/Dockerfile
Enrico Stahn b95fe70b9c
refactor: Go 1.11 and other refactorings (#36)
* 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
2018-12-10 21:32:28 +11:00

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" ]