File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- DIR=" /pip/ libs/python/lib/python$PYTHON_VERSION /site-packages"
2
+ DIR=" /libs/python/lib/python$PYTHON_VERSION /site-packages"
3
3
pip3 install " $@ " --target " $DIR "
4
4
zip -r libraries.zip pip/
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- rm -rf " $( dirname " ${BASH_SOURCE[0]} " ) " /build
3
- mkdir " $( dirname " ${BASH_SOURCE[0]} " ) " /build
2
+ DIR=" $( dirname " ${BASH_SOURCE[0]} " ) " /build
3
+ rm -rf " $DIR "
4
+ mkdir " $DIR "
4
5
docker run --name build-lambda-layer " $@ " > /dev/null 2>&1
5
- docker cp build-lambda-layer:/libraries.zip " $( dirname " ${BASH_SOURCE[0]} " ) " /build /libraries.zip > /dev/null 2>&1
6
+ docker cp build-lambda-layer:/libraries.zip " $DIR " /libraries.zip > /dev/null 2>&1
6
7
docker rm build-lambda-layer > /dev/null 2>&1
7
- jq -n " { path: \" $( dirname " ${BASH_SOURCE[0]} " ) /build /libraries.zip\" }"
8
+ jq -n " { path: \" $DIR /libraries.zip\" }"
You can’t perform that action at this time.
0 commit comments