Skip to content
Snippets Groups Projects
Commit 63a3e806 authored by kanga333's avatar kanga333
Browse files

Fix to make DockerImage run anywhere

parent 18c1dc14
Branches
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.
Please register or to comment