Skip to content

Commit

Permalink
refactor layout to match runtime-independent lambda layout.
Browse files Browse the repository at this point in the history
Signed-off-by: Elliot Murphy <[email protected]>
  • Loading branch information
statik committed Apr 9, 2019
1 parent 9a16944 commit f17e5a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ rpm2cpio pcre*.rpm | cpio -vimd
popd

mkdir -p bin
mkdir -p lib

cp /tmp/build/usr/bin/clamscan /tmp/build/usr/bin/freshclam /tmp/build/usr/lib64/* bin/.
cp /tmp/build/usr/bin/clamscan /tmp/build/usr/bin/freshclam bin/.
cp /tmp/build/usr/lib64/* lib/.
cp freshclam.conf bin/freshclam.conf

zip -r9 /opt/app/lambda_layer.zip bin
zip -r9 /opt/app/lambda_layer.zip bin
zip -r9 /opt/app/lambda_layer.zip lib

0 comments on commit f17e5a0

Please sign in to comment.