-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suppression de xdebug et php-cs-fixer
- Loading branch information
Showing
1 changed file
with
2 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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"] | ||
|
||
|