From a7eb2a0f155227a75f67d672359e134c1f72d969 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 19 Nov 2014 16:13:46 +0800 Subject: [PATCH] . --- Dockerfile | 11 ++++++++++- docker.sh | 15 --------------- 2 files changed, 10 insertions(+), 16 deletions(-) delete mode 100755 docker.sh diff --git a/Dockerfile b/Dockerfile index 8d2103d..fe2115d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,19 @@ FROM golang:latest MAINTAINER Liang Ding +RUN go get github.com/88250/ide_stub +RUN go get github.com/nsf/gocode +RUN go get github.com/bradfitz/goimports + ADD . /go/src/github.com/b3log/wide WORKDIR /go/src/github.com/b3log/wide +RUN go get +RUN go build -CMD ["./docker.sh"] +RUN cp -r . /root/wide +WORKDIR /root/wide +RUN rm -rf /go/pkg /go/src/* +RUN mv ./hello /go/src/hello ENV GOROOT /usr/src/go diff --git a/docker.sh b/docker.sh deleted file mode 100755 index a859222..0000000 --- a/docker.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -# Make docker image. - -go get -go build -cp -r . /root/wide - -go get github.com/88250/ide_stub -go get github.com/nsf/gocode -go get github.com/bradfitz/goimports - -cd /root/wide -rm -rf /go/pkg /go/src -mv ./hello /go/src/