Skip to content

Commit

Permalink
ci: mettre à jour le Dockerfile pour ajouter un UID personnalisé à l'…
Browse files Browse the repository at this point in the history
…utilisateur
  • Loading branch information
arnaud-ritti committed Dec 2, 2024
1 parent c25cc59 commit 789dea0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions php/Dockerfile.frankenphp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ LABEL org.opencontainers.image.title="PHP ${PHP_VERSION} - FrankenPHP"
LABEL org.opencontainers.image.description="PHP ${PHP_VERSION} Docker image with FrankenPHP"

ARG USER="www-data"

ARG USER=www-data
ARG UID="1000"

RUN \
# Use "adduser -D ${USER}" for alpine based distros
useradd -D ${USER}; \
useradd -u ${UID} -s /bin/bash ${USER} --no-create-home --home /var/www/html; \
# Add additional capability to bind to port 80 and 443
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp; \
# Give write access to /data/caddy and /config/caddy
Expand Down

0 comments on commit 789dea0

Please sign in to comment.