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

[Docker] Drop privileges to www-data after container build

parent 57fe7bef
No related branches found
No related tags found
1 merge request!544Resolve "[Docker] Do not run as root"
Pipeline #6604 passed with warnings
......@@ -78,3 +78,11 @@ RUN set -e; \
apt-get clean -y; \
rm -f /var/lib/apt/lists/*_*; \
rm -rf /root/.cache
# Drop privileges for runtime
FROM clean AS unprivileged
WORKDIR /var/lib/aleksis
RUN chown -R www-data:www-data \
/var/lib/aleksis \
/usr/share/aleksis/static
USER www-data:www-data
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