tasks.json 629 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "type": "docker-build",
  6. "label": "docker-build",
  7. "platform": "python",
  8. "dockerBuild": {
  9. "tag": "fastapi: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": ["docker-build"],
  19. "dockerRun": {
  20. "env": {
  21. "FLASK_APP": "aa"
  22. }
  23. },
  24. "python": {
  25. "args": [
  26. "run",
  27. "--no-debugger",
  28. "--no-reload",
  29. "--host",
  30. "0.0.0.0",
  31. "--port",
  32. "5002"
  33. ],
  34. "module": "flask"
  35. }
  36. }
  37. ]
  38. }