Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript containerized function project image unable to be built using ACR #3614

Open
motm32 opened this issue Mar 4, 2024 · 1 comment

Comments

@motm32
Copy link

motm32 commented Mar 4, 2024

Hello! I have been adding support for containerized functions projects/apps to the VSCode Azure Functions extension and have been having issues with the typescript containerized function project.

I am using this command to create the project: func init --worker-runtime node --language typescript --docker

And when I go to build the image using ACR it fails everytime with the same error. Here are some relevant logs that hopefully should help:

Step 4/4 : RUN cd /home/site/wwwroot && npm install && npm run build
2024-03-04 09:11:47.695 [info] ---> Running in dbe4ec32e172
2024-03-04 09:11:47.696 [info]
2024-03-04 09:11:47.697 [info] up to date, audited 49 packages in 411ms
2024-03-04 09:11:47.697 [info]
2024-03-04 09:11:47.697 [info] 14 packages are looking for funding
2024-03-04 09:11:47.697 [info] run npm fund for details
2024-03-04 09:11:47.698 [info]
2024-03-04 09:11:47.698 [info] found 0 vulnerabilities
2024-03-04 09:11:47.698 [info] [91mnpm notice[0m[91m
2024-03-04 09:11:47.699 [info] npm notice New minor version of npm available! 10.2.4 -> 10.5.0
2024-03-04 09:11:47.699 [info] npm[0m[91m [0m[91mnotice Changelog: https://github.com/npm/cli/releases/tag/v10.5.0
2024-03-04 09:11:47.700 [info] [0m[91mnpm notice Run npm install -g [email protected] to update!
2024-03-04 09:11:47.700 [info] npm [0m[91mnotice[0m[91m
2024-03-04 09:11:47.701 [info] [0m
2024-03-04 09:11:47.701 [info] > [email protected] build
2024-03-04 09:11:47.702 [info] > tsc
2024-03-04 09:11:47.702 [info]
2024-03-04 09:11:47.703 [info] [91msh: 1: tsc: Permission denied
2024-03-04 09:11:47.703 [info] [0mThe command '/bin/sh -c cd /home/site/wwwroot && npm install && npm run build' returned a non-zero code: 126
2024-03-04 09:11:47.703 [info] 2024/03/04 17:11:47 Container failed during run: build. No retries remaining.
2024-03-04 09:11:47.703 [info] failed to run step ID: build: exit status 126
2024-03-04 09:11:47.704 [info]
2024-03-04 09:11:47.704 [info] Run ID: ca7a failed after 30s. Error: failed during run, err: exit status 1

You all can also test this using the Docker extension within VSCode with the Build Image in Azure... command.

@codylittle
Copy link

Experiencing same issue, builds fine locally but fails when using ACR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants