We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d116eef commit 3e7309eCopy full SHA for 3e7309e
Dockerfile
@@ -1,5 +1,5 @@
1
FROM php:8.2-apache
2
-USER 1000
+RUN useradd nonroot
3
LABEL maintainer="Mark Tompsett <[email protected]>"
4
5
ENV REFRESHED_AT 2023-07-12
@@ -23,10 +23,9 @@ RUN apt-get update -y \
23
24
RUN mkdir -p /data
25
WORKDIR /data
26
-COPY --chown=1000:www-data ./ /data
+COPY --chown=nonroot:www-data ./ /data
27
28
RUN cd /data && ./composer-install.sh
29
RUN mv /data/composer.phar /usr/bin/composer
30
RUN /usr/bin/composer install
31
-# User 1000 is the first user on a *nix system
32
+USER nonroot
0 commit comments