# 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/alibabacloundfn .
  zip code.zip bootstrap alibabacloundfn
  rm alibabacloundfn

