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/"
|
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"
|
||||||
|
|
Loading…
Reference in New Issue