Skip to content

Commit

Permalink
Tools - PHP: Fixes for Dockerfile (#5592)
Browse files Browse the repository at this point in the history
  • Loading branch information
ford-at-aws authored Nov 2, 2023
1 parent 6fffcc8 commit f5b0ba7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ WORKDIR /php
# Perform build steps
RUN find . -name "composer.json" -not -path "*vendor*" -exec bash -c "dirname {} | xargs -I % composer install --working-dir=%" \;

# Set non-root user
RUN useradd -m automation && \
# Set non-root user w/ ownership of /php
RUN addgroup -S automation && \
adduser -S -G automation automation && \
chown -R automation:automation /php/

USER automation:automation

CMD ["./php/testing", "--integ"]

0 comments on commit f5b0ba7

Please sign in to comment.