feat: implement Dockerfile and service scripts for yanpm-agent

This commit is contained in:
GW_MC
2025-12-21 17:51:43 +08:00
parent 4ca59d2bb6
commit 7781878c2d
4 changed files with 142 additions and 19 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/sh
# Run the agent as the unprivileged 'app' user
cd /app
exec s6-setuidgid app ./yanpm-agent

View File

@@ -0,0 +1,3 @@
#!/bin/sh
# Run nginx in foreground (s6 will supervise it)
exec nginx -g 'daemon off;'