docker_config (复件).json 898 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "timeout": 5,
  3. "docker_base": "run -i --cpus=1 -m=512M --rm --network none -v {tmp_file}:/usr/src/myapp/{runner_filename} -w /usr/src/myapp {image} sh -c",
  4. "docker_runner": {
  5. "php": {
  6. "ext": "php",
  7. "filename": "app.php",
  8. "image": "php:7.4.28-zts-alpine",
  9. "cmd": "php app.php"
  10. },
  11. "node": {
  12. "ext": "js",
  13. "filename": "app.js",
  14. "image": "node:17.8.0-alpine",
  15. "cmd": "node app.js"
  16. },
  17. "python": {
  18. "ext": "py",
  19. "filename": "app.py",
  20. "image": "python:3.9.12-alpine3.15",
  21. "cmd":"python app.py"
  22. },
  23. "java": {
  24. "ext": "java",
  25. "filename": "Main.java",
  26. "image": "openjdk:11-jdk-oraclelinux7",
  27. "cmd": "javac Main.java && java Main"
  28. },
  29. "go": {
  30. "ext": "go",
  31. "filename": "main.go",
  32. "image": "golang:1.18.0-alpine3.15",
  33. "cmd": "go run main.go"
  34. }
  35. }
  36. }