Skip to content

Commit

Permalink
Merge pull request #12 from marcosoliveirasoares94/fix-install-xdebug…
Browse files Browse the repository at this point in the history
…-image

Install XDebug in Image Container
  • Loading branch information
WendellAdriel authored Jul 21, 2023
2 parents 900f6ef + b00427b commit 4ab53d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ FROM webdevops/php-nginx:8.2-alpine
LABEL version="1.0"
LABEL description="Laravel ExA"

ARG M1_PROCESSOR
ENV M1_PROCESSOR $M1_PROCESSOR

ARG XDEBUG_ENABLED
ENV XDEBUG_ENABLED $XDEBUG_ENABLED

# Set the web root from which nginx serves our app
ENV WEB_DOCUMENT_ROOT="/var/www/public"

Expand All @@ -15,11 +21,12 @@ RUN if [ ${M1_PROCESSOR} = true ]; then \
;fi

# Install various packages, php extensions and composer
RUN set -x && apk-install \
RUN set -x && apk-install $PHPIZE_DEPS \
libmcrypt-dev \
mariadb-client \
libpq-dev \
htop \
linux-headers \
&& curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer

# XDebug
Expand Down

0 comments on commit 4ab53d4

Please sign in to comment.