zakariamaaraki / RemoteCodeCompiler

An online code compiler supporting 11 programming languages (Java, Kotlin, Scala, C, C++, C#, Golang, Python, Ruby, Rust and Haskell) for competitive programming and coding interviews.
GNU General Public License v3.0
157 stars 52 forks source link

Can you explain what is the purpose of use `createJavaEntrypointFile()`? #33

Closed Miltonbhowmick closed 2 years ago

Miltonbhowmick commented 2 years ago

I have read your blog https://dev.to/zakariamaaraki/how-to-develop-an-online-code-compiler-using-java-and-docker-1gpi Why can we not use only CMD to run main.py/main.java after submitting code from user?

Thanks in Advance.

zakariamaaraki commented 2 years ago

The idea is to run the submitted code inside a separate container to avoid affecting your main container or other containers with malicious code.

I hope this makes sense to you!

Miltonbhowmick commented 2 years ago

The idea is to run the submitted code inside a separate container to avoid affecting your main container or other containers with malicious code.

I hope this makes sense to you!

Yeah it make sense! Thanks