feat: implement Dockerfile and service scripts for yanpm-agent
This commit is contained in:
4
apps/agent/docker/s6/services.d/agent/run
Normal file
4
apps/agent/docker/s6/services.d/agent/run
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Run the agent as the unprivileged 'app' user
|
||||
cd /app
|
||||
exec s6-setuidgid app ./yanpm-agent
|
||||
3
apps/agent/docker/s6/services.d/nginx/run
Normal file
3
apps/agent/docker/s6/services.d/nginx/run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# Run nginx in foreground (s6 will supervise it)
|
||||
exec nginx -g 'daemon off;'
|
||||
Reference in New Issue
Block a user