Shorten dockerfiles (since they build fine)
This commit is contained in:
+10
-8
@@ -5,19 +5,25 @@ LABEL version="3.1.0-beta1"
|
||||
LABEL github="https://github.com/grafana/grafana"
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN apt-get update
|
||||
RUN apt-get -y upgrade
|
||||
RUN apt-get update && apt-get -y upgrade
|
||||
RUN apt-get install -y curl make git build-essential
|
||||
|
||||
# Installing Node.js
|
||||
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
||||
RUN apt-get install -y nodejs && node -v && npm -v
|
||||
|
||||
# Installing Go
|
||||
RUN cd /tmp && curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
|
||||
WORKDIR /tmp
|
||||
RUN tar -xvf go1.6.linux-amd64.tar.gz
|
||||
RUN mv go /usr/local
|
||||
RUN mkdir /go
|
||||
# Setting up Go environment
|
||||
ENV PATH $PATH:/usr/local/go/bin:/go/bin
|
||||
ENV GOPATH /go
|
||||
RUN go version
|
||||
RUN go env
|
||||
RUN go version && go env
|
||||
|
||||
# Building Grafana
|
||||
|
||||
RUN go get -d -v github.com/grafana/grafana || true
|
||||
WORKDIR /go/src/github.com/grafana/grafana
|
||||
@@ -28,10 +34,6 @@ RUN rm -rf Godeps/_workspace
|
||||
RUN godep restore
|
||||
RUN go run build.go build
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
||||
RUN apt-get install -y nodejs
|
||||
RUN node -v
|
||||
RUN npm -v
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user