Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: revert ensure docker file runs as non root user (#33004)
Reverts #32976 After discussing with team, I'm going to revert the original PR. This is because we notice that CDK when bundling supports the following feature: https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_lambda_nodejs/ICommandHooks.html ``` beforeBundling: Commands in this hook run before the bundling process begins, outside the Docker container. These are executed on the local machine. beforeInstall: Commands in this hook run inside the Docker container before npm install or npm ci commands are executed. afterBundling: Commands in this hook run inside the Docker container after the bundling process completes. ``` This means that users can provide custom commands to run inside the docker container and we do not know what current users run. They could provide a command that require root access and this will be a regression once released.
- Loading branch information