sample-app-aoai-chatGPT
sample-app-aoai-chatGPT copied to clipboard
Building a custom portal
I am interested in developing a personalized website using this repository as a foundation. I have cloned the repo and established a new container without modifying its contents. Subsequently, I specified the new container in the deployment.json file. However, upon deployment, the web application does not function as expected. Could you please advise on any potential oversights or provide a comprehensive guide for this process? My primary objective is to alter the website's branding. Thanks
I cloned the repo and built a container from it. When I run it locally, it replies on port 80 properly. But after its deployment in azure webapp, this error is received:
`2023-09-27T21:06:15.695Z INFO - Initiating warmup request to container webaichatvrt3_0_32258541 for site webaichatvrt3
2023-09-27T21:06:15.704Z ERROR - Container webaichatvrt3_0_32258541 for site webaichatvrt3 has exited, failing site start
2023-09-27T21:06:15.709Z ERROR - Container webaichatvrt3_0_32258541 didn't respond to HTTP pings on port: 80, failing site start. See container logs for debugging.`
Hi @NorEliYehShi if you're still having trouble, you might try building and running locally and then deploying with az webapp up
as described in the README
Hi @sarah-widder , I managed to solve it.
Mac users should add --platform=linux/amd64
to their build command, for example:
docker build --platform=linux/amd64 -t acr.azurecr.io/aichat:01 -f WebApp.Dockerfile .