File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 11# https://github.com/lambci/docker-lambda#documentation
22FROM lambci/lambda:build-provided.al2
33
4- ARG RUST_VERSION=1.56.1
5- RUN yum install -y jq openssl-devel
4+ ARG RUST_VERSION=1.57.0
5+ RUN yum install -y jq openssl-devel mysql-devel
66RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
77 | CARGO_HOME=/cargo RUSTUP_HOME=/rustup sh -s -- -y --profile minimal --default-toolchain $RUST_VERSION
88ADD build.sh /usr/local/bin/
Original file line number Diff line number Diff line change @@ -28,12 +28,6 @@ export CARGO_TARGET_DIR=$PWD/target/lambda
2828 yum install -y " $@ "
2929 fi
3030
31- if test -f " $HOOKS_DIR /$INSTALL_HOOK " ; then
32- echo " Running install hook"
33- /bin/bash " $HOOKS_DIR /$INSTALL_HOOK "
34- echo " Install hook ran successfully"
35- fi
36-
3731 # source cargo
3832 . $CARGO_HOME /env
3933
@@ -69,12 +63,7 @@ function package() {
6963 cp " ${file} .debug" " ${OUTPUT_FOLDER} /bootstrap.debug" > 2& > /dev/null || true
7064
7165 if [[ " $PACKAGE " != " false" ]]; then
72- zip -j " $file .zip" " ${OUTPUT_FOLDER} /bootstrap"
73- if test -f " $HOOKS_DIR /$PACKAGE_HOOK " ; then
74- echo " Running package hook"
75- /bin/bash " $HOOKS_DIR /$PACKAGE_HOOK " $file
76- echo " Package hook ran successfully"
77- fi
66+ zip -j " $file .zip" " ${OUTPUT_FOLDER} /bootstrap" /usr/lib64/mysql/libmysqlclient.so.18
7867 fi
7968}
8069
You can’t perform that action at this time.
0 commit comments