1
0
lifei6671 8 жил өмнө
parent
commit
a8358e1e51
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -8,7 +8,8 @@ WORKDIR /go/src/github.com/lifei6671/godoc
 
 
 RUN chmod +x start.sh
 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
     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"]
 CMD ["./start.sh"]