ide
ide copied to clipboard
Added Dockerfile and entrypoint script to configure API Urls
I've created a basic Dockerfile that will allow people that are self-hosting the API to also spin up the IDE easily and configure the API URL setting by specifying an environment variable called API_URL
Build the image:
docker build -t judge0-ide .
Run Locally:
docker run -d -p 8080:80 --name judge0-ide -e API_URL="https://api.example.com" judge0-ide
I'll update that tonight. Thanks!
I've updated my code to remove all references to defaultUrl and put the contents into apiUrl directly. I also changed my const to a var to match your request.
When i get more time, i'll add some changes to allow an environment variable to update the extraApiUrl