4kr health
4kr project current
4kr create hello-forkr
4kr exec hello-forkr -- cat /etc/os-release
cat > /tmp/forkr-hello.html <<'HTML'
<!doctype html>
<html>
<head><meta charset="utf-8"><title>Hello from Forkr</title></head>
<body><h1>Hello from Forkr</h1><p>This page is served from a fork.</p></body>
</html>
HTML
4kr cp /tmp/forkr-hello.html hello-forkr:/root/index.html
4kr exec hello-forkr -- sh -lc 'mkdir -p /srv/hello && cp /root/index.html /srv/hello/index.html'
4kr service start hello-forkr hello-web --port 8080 --publish hello -- sh -lc 'cd /srv/hello && python3 -m http.server 8080 --bind 0.0.0.0'
4kr service status hello-forkr hello-web