tasks.json 639 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "type": "docker-build",
  6. "label": "docker-build",
  7. "platform": "python",
  8. "dockerBuild": {
  9. "tag": "fgit:latest",
  10. "dockerfile": "${workspaceFolder}/Dockerfile",
  11. "context": "${workspaceFolder}",
  12. "pull": true
  13. }
  14. },
  15. {
  16. "type": "docker-run",
  17. "label": "docker-run: debug",
  18. "dependsOn": [
  19. "docker-build"
  20. ],
  21. "dockerRun": {
  22. "env": {
  23. "FLASK_APP": "main.py"
  24. }
  25. },
  26. "python": {
  27. "args": [
  28. "run",
  29. "--no-debugger",
  30. "--no-reload",
  31. "--host",
  32. "0.0.0.0",
  33. "--port",
  34. "5002"
  35. ],
  36. "module": "flask"
  37. }
  38. }
  39. ]
  40. }