Skip to content

Dockerfile cleanup#98

Open
dsb3 wants to merge 2 commits intonowthis:mainfrom
dsb3:containerfile
Open

Dockerfile cleanup#98
dsb3 wants to merge 2 commits intonowthis:mainfrom
dsb3:containerfile

Conversation

@dsb3
Copy link

@dsb3 dsb3 commented Jan 5, 2026

a/ Always use fully qualified image name

Not noticed if you're using Docker (or Docker Desktop), but the short container images are problematic for other containerization systems (most commonly will be seen by folks using podman / podman desktop).

b/ Update container to run as non-root.

Always best practice. Giving a numeric "USER" helps in container orchestration systems to permit "runAsNonRoot".

c/ Protect container contents when running.

By limiting to only one subdirectory to chown as the non root user, we protect the container from being modified after starting, e.g. this would prevent a flaw in the code from permitting an attacker to modify the web content to their own end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant