-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Dockerfile Implementation (#5)
* fix: rename metrics-server.go to metrics-api.go * fix: initial dockerfile implementation
- Loading branch information
Dara Hayes
committed
Feb 16, 2018
1 parent
57c9793
commit 5f73718
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
FROM golang:latest | ||
|
||
RUN mkdir -p /aerogear-metrics-api | ||
RUN mkdir -p /go/src/github.com/aerogear/aerogear-metrics-api/ | ||
RUN mkdir /metrics-api | ||
|
||
ADD . /aerogear-metrics-api | ||
ADD . /go/src/github.com/aerogear/aerogear-metrics-api/ | ||
|
||
WORKDIR /aerogear-metrics-api | ||
WORKDIR /go/src/github.com/aerogear/aerogear-metrics-api/ | ||
|
||
RUN go build aerogear_metrics_api.go | ||
RUN go get github.com/golang/dep/cmd/dep | ||
RUN dep ensure | ||
|
||
CMD ["./aerogear_metrics_api"] | ||
RUN go build -o /metrics-api/metrics-api ./cmd/metrics-api/metrics-api.go | ||
|
||
RUN ls /metrics-api | ||
|
||
CMD ["/metrics-api/metrics-api"] |
File renamed without changes.