Skip to content
Snippets Groups Projects
Commit 9c7c99cd authored by MUNIER Florian's avatar MUNIER Florian
Browse files

[upd] update dockerfile

parent b6716813
No related branches found
No related tags found
No related merge requests found
FROM alpine as downloader
FROM alpine:20220715 as downloader
RUN apk add --no-cache \
ca-certificates=20220614-r2 \
wget=1.21.3-r2
WORKDIR /tmp
RUN wget -q https://phar.phpunit.de/phpunit-9.phar -O phpunit \
&& wget -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -O phpcs \
&& wget -q https://phpmd.org/static/latest/phpmd.phar -O phpmd
FROM php:8.0-cli
COPY --from=downloader /tmp/php* /usr/local/bin/
WORKDIR /usr/local/bin/
RUN chmod +x phpunit phpcs phpmd
WORKDIR /usr/local/etc/php/conf.d/
RUN pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > xdebug.ini \
&& echo "xdebug.mode=debug" >> xdebug.ini \
&& echo "xdebug.remote_autostart=off" >> xdebug.ini
ENV XDEBUG_MODE=coverage
WORKDIR /app
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment