fix docker build error by dockerBuildTemplate

This commit is contained in:
scrpgil 2017-03-19 21:45:59 +09:00
parent aa19ecedb0
commit 8d646b4be1
1 changed files with 1 additions and 2 deletions

View File

@ -44,8 +44,7 @@ ENTRYPOINT $APP_DIR/{{.Entrypoint}}
ADD . $APP_DIR
# Compile the binary and statically link
RUN cd $APP_DIR
RUN CGO_ENABLED=0 godep go build -ldflags '-d -w -s'
RUN cd $APP_DIR && CGO_ENABLED=0 godep go build -ldflags '-d -w -s'
EXPOSE {{.Expose}}
`