Skip to content

Commit

Permalink
suppression de xdebug et php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
SebSept committed May 15, 2024
1 parent 9891f81 commit f201ab4
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ARG PHP_VERSION=8.3.4
ARG GIT_EMAIL="[email protected]"
ARG GIT_USERNAME="seb"
ARG ALPINE_VERSION=3.18
ARG PHP_CS_FIXER_VERSION=3.52.1

# Do not expose the port to the host.
# https://hub.docker.com/_/php
Expand All @@ -28,11 +27,7 @@ ADD --chmod=700 \
# already bundled : Ctype , iconv, PCRE, Session, Tokenizer, simplexml
# json, mbstring (bundled)
RUN install-php-extensions intl pdo_pgsql opcache apcu
# dev extensions
# To start xdebug for a interactive cli use this :
# XDEBUG_MODE=debug XDEBUG_SESSION=1 XDEBUG_CONFIG="client_host=172.17.0.1 client_port=9003" PHP_IDE_CONFIG="serverName=myrepl" php /app/hello.php
# A phpstorm server with the appropriate name is also needed ( Config : PHP > Servers )
RUN install-php-extensions xdebug


# since we use php-fpm, we may use www-data user @todo
RUN adduser -D -s /usr/bin/fish -h /home/climber -u 1000 climber
Expand All @@ -51,14 +46,8 @@ RUN composer --version
WORKDIR /app
RUN chown climber /app && mkdir -p /app/vendor/bin/

# Add psysh - https://github.com/bobthecow/psysh
RUN wget https://github.com/bobthecow/psysh/releases/download/v0.12.0/psysh-v0.12.0.tar.gz --output-document /tmp/psysh.tar.gz \
&& tar -xvf /tmp/psysh.tar.gz -C /usr/local/bin/ \
&& chmod 500 /usr/local/bin/psysh \
&& chown climber /usr/local/bin/psysh \
&& psysh --version

# Add symfony cli
# will probably be removed to production image
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.alpine.sh' | bash \
&& apk add symfony-cli \
&& symfony local:check:requirements
Expand All @@ -71,14 +60,6 @@ ARG GIT_USERNAME
RUN git config --global user.email "${GIT_EMAIL}" \
&& git config --global user.name "${GIT_USERNAME}"

# Add php-cs-fixer
# @deprecated, better include it in the composer.json
ARG PHP_CS_FIXER_VERSION
ADD --chown=climber:climber \
--chmod=744 \
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v${PHP_CS_FIXER_VERSION}/php-cs-fixer.phar \
/usr/local/bin/php-cs-fixer

# Add composer binaries to path
RUN ["fish", "-c fish_add_path /app/vendor/bin"]

Expand Down

0 comments on commit f201ab4

Please sign in to comment.