Browse Source

修改Dockerfile

lifei6671 8 years ago
parent
commit
a8358e1e51
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -8,7 +8,8 @@ WORKDIR /go/src/github.com/lifei6671/godoc
 
 RUN chmod +x start.sh
 
-RUN  go build -ldflags "-w" && \
+RUN  go get -d ./... && \
+    go build -ldflags "-w" && \
     rm -rf commands controllers models routers search vendor .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md utils graphics Godeps
 
 CMD ["./start.sh"]