i remember we need a DOCKERFILE, but i do not remember how it needs to be structured.

I also do not know how we grab the ID resulting on deployment from inside the container.

Lets submit this AI prompt:

hiya

i need some advice on how to approach my issue:

i want a custom webserver-docker container, featuring dynamic polling of the www root as repo. said repo should not be hardcoded, but read from a variable on container deployment.

another technical question: how can we make the container aware of its ID/canonical name, eg poll its container name from the inside? can we just read the hostname from inside?

Perplexity

“You can indeed treat it like a normal system by running a startup script when the container launches.”

<aside> 💡

Thanks, AI! Apparently i just needed some confirmation to go with my guts..

</aside>