Skip to content
Snippets Groups Projects
Commit 0c4bb3a6 authored by neezgee's avatar neezgee Committed by GitHub
Browse files

Merge pull request #23 from kanga333/fix_docker

Fix to make DockerImage run anywhere
parents 18c1dc14 63a3e806
No related branches found
No related tags found
No related merge requests found
FROM alpine:3.5 FROM golang:alpine
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates git
RUN go get github.com/neezgee/apache_exporter
ADD apache_exporter /
EXPOSE 9117 EXPOSE 9117
ENTRYPOINT ["/apache_exporter"] ENTRYPOINT ["/go/bin/apache_exporter"]
\ No newline at end of file \ No newline at end of file
...@@ -28,7 +28,6 @@ Tested on Apache 2.2 and Apache 2.4. ...@@ -28,7 +28,6 @@ Tested on Apache 2.2 and Apache 2.4.
Run the following commands from the project root directory. Run the following commands from the project root directory.
``` ```
env GOOS=linux GOARCH=amd64 go build .
docker build -t apache_exporter . docker build -t apache_exporter .
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment