Description of feature
The docker images listen to ports specified by DOCKER_LAMBDA_API_PORT and DOCKER_LAMBDA_RUNTIME_PORT by default. While it would be great if they respected $PORT, we can emulate this by using specifying both environment variables in the built dockerfile.
Specifying --port should set both of these values in the generated Dockerfile via ENV directives.
Description of feature
The docker images listen to ports specified by
DOCKER_LAMBDA_API_PORTandDOCKER_LAMBDA_RUNTIME_PORTby default. While it would be great if they respected$PORT, we can emulate this by using specifying both environment variables in the built dockerfile.Specifying
--portshould set both of these values in the generatedDockerfileviaENVdirectives.