ide icon indicating copy to clipboard operation
ide copied to clipboard

Added Dockerfile and entrypoint script to configure API Urls

Open darthcircuit opened this issue 1 year ago • 2 comments

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

darthcircuit avatar Jun 02 '23 18:06 darthcircuit

I'll update that tonight. Thanks!

darthcircuit avatar Aug 20 '23 00:08 darthcircuit

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

darthcircuit avatar Aug 21 '23 19:08 darthcircuit