The following command runs http.server as a service:
dstack apply -f examples/misc/http.server/.dstack.ymlSee the configuration at .dstack.yml.
The following command runs http.server as a task:
dstack apply -f examples/misc/http.server/task.dstack.ymlSee the configuration at task.dstack.yml.