Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install XDebug in Image Container #12

Merged
merged 2 commits into from
Jul 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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