#golang v1.8が準備されているimageを利用 FROM golang:1.8.0 #$GOPATHに/go/srcを追加.この後srcの下にアプリケーションフォルダを作成する為 ENV GOPATH $GOPATH:/go/src #とりあえず更新 RUN apt-get update && \ apt-get upgrade -y #revel,revel-cli,gorm,go-sql-driverのインストール #revelにはORMがないので RUN go get github.com/revel/revel && \ go get github.com/revel/cmd/revel && \ go get github.com/jinzhu/gorm && \ go get github.com/go-sql-driver/mysql #アプリケーション(myapp