Here it is, located in the backend\AzureContainer folder I include a Dockerfile that will build a docker image that supports starting the code-server and then running the action.js with nodejs and saving the screenshot to a folder named images. You can mount a local (or Azure blob storage) to this location to get the image outside of the container!
Oh, I also changed the WORKDIR to onlythemes so we aren't using the user profile root location.
Also.... I learned that we cannot override the ENTRYPOINT of the base image so instead, I replaced their entrypoint.sh with our own.
Here it is, located in the
backend\AzureContainer
folder I include a Dockerfile that will build a docker image that supports starting the code-server and then running theaction.js
with nodejs and saving the screenshot to a folder namedimages
. You can mount a local (or Azure blob storage) to this location to get the image outside of the container!Oh, I also changed the WORKDIR to
onlythemes
so we aren't using the user profile root location.Also.... I learned that we cannot override the ENTRYPOINT of the base image so instead, I replaced their
entrypoint.sh
with our own.