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
ADD apache_exporter /
RUN apk add --no-cache ca-certificates git
RUN go get github.com/neezgee/apache_exporter
EXPOSE 9117
ENTRYPOINT ["/apache_exporter"]
\ No newline at end of file
ENTRYPOINT ["/go/bin/apache_exporter"]
\ No newline at end of file
......@@ -28,7 +28,6 @@ Tested on Apache 2.2 and Apache 2.4.
Run the following commands from the project root directory.
```
env GOOS=linux GOARCH=amd64 go build .
docker build -t apache_exporter .
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment