Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docker build error by dockerBuildTemplate #382

Merged
merged 1 commit into from
Mar 19, 2017

Conversation

scrpgil
Copy link
Contributor

@scrpgil scrpgil commented Mar 19, 2017

I found "bee dockerize" command bug.
This is a commit that fixed a bug in Dockerfile generated by the dockerize command.

When I used the dockerize command, the following error occurred in docker build.

$ bee dockerize
$ docker build .
Step 1 : FROM library/golang
 ---> 9ad50708c1cb
~~~~~~~~~~~~~~~~~~~~~~~~
Step 9 : RUN CGO_ENABLED=0 godep go build -ldflags '-d -w -s'
 ---> Running in cefd1fd7d91f
godep: [WARNING]: godep should only be used inside a valid go package directory and    
godep: [WARNING]: may not function correctly. You are probably outside of your $GOPATH.  
godep: [WARNING]:	Current Directory: /go  
godep: [WARNING]:	$GOPATH: /go  
godep: No Godeps found (or in any parent directory)  

This happens because the cd command and the godep command are written on separate lines in the Dockerfile generated by the dockerize command.
Therefore, in this commit, cd command and godep command are put together into one line.

@sergeylanzman sergeylanzman merged commit 9760ce6 into beego:develop Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants