I have the following Dockerfile:
FROM golang:1.9 AS build-go RUN go get github.com/grafana/grafana; exit 0 WORKDIR $GOPATH/src/github.com/grafana/grafana RUN go run build.go setup && go run build.go build FROM node:8 AS build-node COPY --from=build-go $HOME/go/src/github.com/grafana/grafana . RUN npm install -g yarn && yarn install --pure-lockfile CMD npm run build && ./bin/linux-amd64/grafana-server EXPOSE 3000
When I use this file to create and build an image then use that to start a container it takes ages for it to finish the
npm run build command. This causes the server to run after a total of 5 minutes.
Isn’t there anything that can be done to speed up the
npm run build process?