Open
Description
Desire a way to specify listening port to aws-lambda-rie.
This could be with an ENV in the Dockerfile similar to "DOCKER_LAMBDA_API_PORT" in lambci/docker-lambda#235
Or with an argument to aws-lambda-rie like -p80 or at least by mapping like -p80:8080. so the lambda_entrypoint.sh would look like
#!/bin/sh
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
exec /usr/local/bin/aws-lambda-rie -p80 $RUNTIME_ENTRPOINT
else
exec $RUNTIME_ENTRPOINT
fi
I am aware of the docker option docker run -p 80:8080
but I am asking for a way to do it in the dockerfile as an ENV or modifying the entrypoint script when calling aws-lambda-rie.
ENV AWS_LAMBDA_RUNTIME_API 127.0.0.1:80
resulted in "Failed to get next"
Metadata
Metadata
Assignees
Labels
No labels