feat: add alibaba cloud fn template

This commit is contained in:
2020-11-21 23:44:10 +08:00
parent 5abf190192
commit 95fab8503f
6 changed files with 127 additions and 1 deletions

10
{{project_name}}/justfile Normal file
View File

@@ -0,0 +1,10 @@
# build alibaba cloud fn
buildfn:
if [ -f "code.zip" ]; then rm code.zip; fi
dockerbuild :image:rust:1.47 :mirror:git://mirrors.ustc.edu.cn/crates.io-index \
build --release --target-dir linux_target
cp linux_target/release/{{bin}} .
chmod +x bootstrap
zip code.zip bootstrap {{bin}}
rm {{bin}}