Skip to content
Snippets Groups Projects
Verified Commit fd9c6006 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[Docker] Use numeric user ID in USER to not confuse K8s

parent 214f5bb4
No related branches found
No related tags found
1 merge request!544Resolve "[Docker] Do not run as root"
Pipeline #6626 passed
......@@ -81,11 +81,11 @@ RUN set -e; \
rm -f /var/lib/apt/lists/*_*; \
rm -rf /root/.cache
# Drop privileges for runtime
# Drop privileges for runtime to www-data
FROM clean AS unprivileged
WORKDIR /var/lib/aleksis
RUN chown -R www-data:www-data \
${ALEKSIS_static__root} \
${ALEKSIS_media__root} \
${ALEKSIS_backup__location}
USER www-data:www-data
USER 33:33
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment