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

Fix to make DockerImage run anywhere

parent 18c1dc14
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