Skip to content

Commit

Permalink
feat(php-alpine-develop): remove app user, run as root in development…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
damienwebdev committed Sep 25, 2019
1 parent 07b6034 commit 27e36ac
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions php/7.2/alpine-develop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \

COPY conf/php.ini /usr/local/etc/php/

ENV MAGENTO_USER=app
ENV MAGENTO_USER_UID=1000
ENV MAGENTO_USER_GID=1000

RUN addgroup --gid "$MAGENTO_USER_GID" "$MAGENTO_USER" && adduser \
--disabled-password \
--gecos "" \
--no-create-home \
--ingroup "$MAGENTO_USER" \
--uid "$MAGENTO_USER_UID" \
-h /var/www \
-s /bin/bash "$MAGENTO_USER"

RUN mkdir -p /var/www/html && mkdir -p /var/www/html/vendor

RUN chmod 775 /var/www/html && chown root:root /var/www/html && chown app:app /var/www/html/vendor

USER app:app

VOLUME /var/www/html

WORKDIR /var/www/html

0 comments on commit 27e36ac

Please sign in to comment.