-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (36 loc) · 1.42 KB
/
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
42
43
44
ARG PHP_VERSION=latest
FROM likesistemas/php:${PHP_VERSION}
ENV SHOW_ERRORS=true
ENV COMPOSER_INSTALL=true
ENV DB_MIGRATE=true
ENV DB_SEED=true
ENV COMPOSER_INSTALL_PARAMS=
RUN install-composer
RUN install-xdebug
RUN echo "memory_limit=-1" > $PHP_GLOBAL_CONFIG_PATH/99_memory-limit.ini
# Install pcov
RUN pecl install pcov
# Install Oh My Zsh
RUN apt-get update && apt-get install -y procps vim
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.1/zsh-in-docker.sh)" -- \
-t https://github.com/denysdovhan/spaceship-prompt \
-a 'SPACESHIP_PROMPT_ADD_NEWLINE="false"' \
-p git \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-p https://github.com/zsh-users/zsh-history-substring-search \
-p https://github.com/zsh-users/zsh-syntax-highlighting
ENV SHELL /bin/zsh
ENV PATH="$PATH:/root/.composer/vendor/bin:/root/.config/composer/vendor/bin"
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN composer global require friendsofphp/php-cs-fixer
RUN composer global require phpstan/phpstan
RUN composer global require "squizlabs/php_codesniffer=*"
RUN composer global require rector/rector
RUN composer global require symplify/easy-coding-standard
RUN PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer --version && \
phpstan -V && \
phpcs -h && phpcbf -h \
rector --version \
ecs --version
RUN git config --global --add safe.directory /var/www/