axum-aws-lambda 0.10.0

Tower Layer for compatibility between Axum and AWS Lambda Runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM debian:latest

ADD "https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie" /var/runtime/rie

RUN chmod +x /var/runtime/rie
RUN apt-get update
RUN apt-get install -y ca-certificates

ENV AWS_LAMBDA_FUNCTION_NAME="test"
ENV AWS_LAMBDA_FUNCTION_MEMORY_SIZE="3008"
ENV AWS_LAMBDA_FUNCTION_VERSION="1"
ENV AWS_LAMBDA_RUNTIME_API="localhost:9000"
ENV AWS_DEFAULT_REGION="us-west-2"
ENV RUST_BACKTRACE="1"

COPY "target/release/examples/main" "/var/runtime/bootstrap"
CMD ["/var/runtime/rie", "/var/runtime/bootstrap"]