Browse Source

docker: use vendor to replace go get

pull/4353/head
Unknwon 8 years ago
parent
commit
30d9e2ee3c
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      .dockerignore
  2. 1
      docker/build.sh

2
.dockerignore

@ -14,6 +14,4 @@ config.codekit
.editorconfig .editorconfig
.gitignore .gitignore
Dockerfile* Dockerfile*
vendor
vendor/**
gogs gogs

1
docker/build.sh

@ -16,7 +16,6 @@ ln -s /app/gogs/build ${GOPATH}/src/github.com/gogits/gogs
cd ${GOPATH}/src/github.com/gogits/gogs cd ${GOPATH}/src/github.com/gogits/gogs
# Needed since git 2.9.3 or 2.9.4 # Needed since git 2.9.3 or 2.9.4
git config --global http.https://gopkg.in.followRedirects true git config --global http.https://gopkg.in.followRedirects true
go get -v -tags "sqlite cert pam" ./...
make build TAGS="sqlite cert pam" make build TAGS="sqlite cert pam"
# Cleanup GOPATH # Cleanup GOPATH

Loading…
Cancel
Save