box.rb: add build-base, clean it up

This commit is contained in:
Cadey Ratio 2017-03-25 11:16:13 -07:00
parent cca05a1aa1
commit 35bb98c27a
1 changed files with 3 additions and 2 deletions

5
box.rb
View File

@ -40,12 +40,13 @@ files.each { |x| put x }
copy "vendor/", "/root/go/src/" copy "vendor/", "/root/go/src/"
### Build ### Build
run "apk add --no-cache --virtual site-builddep build-base"
run %q[ cd /site && sh ./build.sh ] run %q[ cd /site && sh ./build.sh ]
debug! if debug? debug! if debug?
### Cleanup ### Cleanup
run %q[ rm -rf /go /site/backend /root/sdk ] run %q[ rm -rf /root/go /site/backend /root/sdk ]
run %q[ apk del git go1.8 ] run %q[ apk del git go1.8 site-builddep ]
### Runtime ### Runtime
cmd "/site/run.sh" cmd "/site/run.sh"