mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 14:39:40 -08:00
Merge pull request #801 from sdurrheimer/master
Fix Dockerfile with recent embed-static.sh/go-bindata change
This commit is contained in:
commit
5e50addc87
|
@ -1,15 +1,14 @@
|
||||||
FROM alpine:edge
|
FROM alpine:3.2
|
||||||
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
|
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
COPY . /go/src/github.com/prometheus/prometheus
|
COPY . /go/src/github.com/prometheus/prometheus
|
||||||
|
|
||||||
RUN apk add --update -t build-deps go git mercurial vim \
|
RUN apk add --update -t build-deps go git mercurial \
|
||||||
&& apk add -u musl && rm -rf /var/cache/apk/* \
|
&& apk add -u musl && rm -rf /var/cache/apk/* \
|
||||||
&& go get github.com/tools/godep \
|
&& go get github.com/tools/godep \
|
||||||
&& cd /go/src/github.com/prometheus/prometheus \
|
&& cd /go/src/github.com/prometheus/prometheus \
|
||||||
&& $GOPATH/bin/godep restore && go get -d \
|
&& $GOPATH/bin/godep restore && go get -d \
|
||||||
&& ./scripts/embed-static.sh web/static web/templates | gofmt > web/blob/files.go \
|
|
||||||
&& go build -ldflags " \
|
&& go build -ldflags " \
|
||||||
-X main.buildVersion $(cat VERSION) \
|
-X main.buildVersion $(cat VERSION) \
|
||||||
-X main.buildRevision $(git rev-parse --short HEAD) \
|
-X main.buildRevision $(git rev-parse --short HEAD) \
|
||||||
|
|
Loading…
Reference in a new issue