Skip to content

Commit

Permalink
chore(docker): allow composer to run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Oct 1, 2024
1 parent 1e85d97 commit ea826c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM ushahidi/php-fpm-nginx:php-7.4
LABEL org.opencontainers.image.source="https://github.com/ushahidi/platform"

# TODO: non-root user container setup
ENV COMPOSER_ALLOW_SUPERUSER=1

COPY docker-php-ext-enable /usr/local/bin/
RUN apt-get update
RUN apt-get install -y php-pear php${PHP_MAJOR_VERSION}-dev
Expand Down

0 comments on commit ea826c8

Please sign in to comment.