Add parameter for building the lambda function dependencies as user instead of root

This commit is contained in:
druizz90
2020-08-06 17:08:11 +02:00
parent c518fcaf14
commit eaf449c67a

View File

@@ -87,9 +87,10 @@ def make_python_zip_bundle(input_path: str,
# builds requirements using target runtime
build_log = execute_shell_command(command=[
'docker', 'run', '--rm',
docker, 'run', '--rm',
'-v', f'{input_path}:/app',
'-w', '/app',
'-u', '$(id -u):$(id -g)',
lambda_runtime_docker_image,
'pip', 'install',
'-r', requirements_file,