-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
41 lines (32 loc) · 925 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM php:8.1-fpm-alpine
LABEL maintainer="Diego Brocanelli <[email protected]>"
RUN apk update && \
apk upgrade && \
apk add --no-cache openssl \
bash \
vim \
mysql-client \
nodejs \
npm \
unzip \
autoconf \
g++ \
zlib-dev \
make
WORKDIR /var/www/html
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer global require \
phpunit/phpunit \
squizlabs/php_codesniffer \
friendsofphp/php-cs-fixer \
phpmd/phpmd \
phploc/phploc \
phpstan/phpstan \
icanhazstring/composer-unused \
vimeo/psalm
RUN ln -s -f /root/.composer/vendor/bin/* /usr/local/bin/
RUN pecl install -o -f xdebug && \
docker-php-ext-enable xdebug && \
rm -rf /tmp/pear
COPY xdebug.ini $PHP_INIT_DIR/conf.d/
ENTRYPOINT ["php-fpm"]