aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2017-03-25 11:16:13 -0700
committerChristine Dodrill <me@christine.website>2017-03-25 11:16:13 -0700
commit35bb98c27aaf56f7e0c82cff81887c66f7ac81e1 (patch)
treef40998e1179bfa351a5d12dfe7b99245357b1dcd
parentcca05a1aa1b90aed5f5a3a5b80cbd0bb90b28f28 (diff)
downloadxesite-35bb98c27aaf56f7e0c82cff81887c66f7ac81e1.tar.xz
xesite-35bb98c27aaf56f7e0c82cff81887c66f7ac81e1.zip
box.rb: add build-base, clean it up
-rw-r--r--box.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/box.rb b/box.rb
index 14efa43..3ac17fd 100644
--- a/box.rb
+++ b/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"