github.com/rotblauer/buffalo@v0.7.1-0.20170112214545-7aa55ef80dd3/Dockerfile (about) 1 FROM golang 2 3 RUN apt-get update 4 RUN curl -sL https://deb.nodesource.com/setup_7.x | bash 5 RUN apt-get install -y build-essential nodejs 6 7 ENV BP=$GOPATH/src/github.com/gobuffalo/buffalo 8 9 RUN mkdir -p $BP 10 WORKDIR $BP 11 ADD . . 12 13 RUN go get -v -t ./... 14 15 RUN go test -race ./... 16 17 RUN go install ./buffalo 18 19 WORKDIR $GOPATH/src/ 20 RUN buffalo new --db-type=sqlite3 hello_world 21 WORKDIR ./hello_world 22 RUN cat database.yml 23 RUN go vet -x ./... 24 RUN buffalo db create -a 25 RUN buffalo db migrate -e test 26 RUN buffalo test -race 27 RUN buffalo g goth facebook twitter linkedin github 28 RUN buffalo test -race 29 RUN buffalo build