-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-56
28 lines (24 loc) · 1.01 KB
/
Dockerfile-56
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
FROM likesistemas/php:56
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 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
# Install PHP CS Fixer
ENV PATH="$PATH:/root/.composer/vendor/bin"
RUN composer global require friendsofphp/php-cs-fixer && php-cs-fixer
RUN composer global require "squizlabs/php_codesniffer=*" && phpcs -h && phpcbf -h