Replies: 1 comment
-
|
is anyone here ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋,
I’m working on building a production-grade, minimal Nginx image using the Wolfi toolchain. My goal is to create a secure "distroless" equivalent by compiling Nginx from source using Melange and assembling the final runtime with Apko.
I have successfully compiled the binary, but I am hitting a wall regarding runtime permissions and volatile paths (specifically the PID file and logs) when running as a non-root user.
The Constraints & The Problem:
/run, as this is a volatile filesystem./runfrom the Melange build artifact and tried to define the directory structure and permissions in theapko.yamlpathssection instead. However, the container fails immediately upon startup with(13: Permission denied)when Nginx tries to create the PID file or write logs, despite my attempts to set ownership to thenginxuser (UID 101).My Setup:
nginx(UID 101).pid /run/nginx.pid;Configuration Files:
Here is my
nginx.melange.yaml:And my
apko.yamlwhere I attempt to fix permissions:Beta Was this translation helpful? Give feedback.
All reactions