forked from cadey/xesite
box.rb: add build-base, clean it up
This commit is contained in:
parent
cca05a1aa1
commit
35bb98c27a
5
box.rb
5
box.rb
|
@ -40,12 +40,13 @@ files.each { |x| put x }
|
|||
copy "vendor/", "/root/go/src/"
|
||||
|
||||
### Build
|
||||
run "apk add --no-cache --virtual site-builddep build-base"
|
||||
run %q[ cd /site && sh ./build.sh ]
|
||||
debug! if debug?
|
||||
|
||||
### Cleanup
|
||||
run %q[ rm -rf /go /site/backend /root/sdk ]
|
||||
run %q[ apk del git go1.8 ]
|
||||
run %q[ rm -rf /root/go /site/backend /root/sdk ]
|
||||
run %q[ apk del git go1.8 site-builddep ]
|
||||
|
||||
### Runtime
|
||||
cmd "/site/run.sh"
|
||||
|
|
Loading…
Reference in New Issue