ldc-web-images-docker/PHP8.1/src/dev-utils.txt
Vincent BRIDIER 4f93c1e96b
Update node
2023-03-14 11:34:39 +01:00

21 lines
1.1 KiB
Text

# DEV
RUN apt-get install -qy git zsh
USER noroot
RUN sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# caractères illisibles - RUN sed -i 's/robbyrussell/agnoster/g' ~/.zshrc
RUN sed -i 's/plugins=(git)/plugins=(git laravel zsh-autosuggestions)/g' ~/.zshrc
# local-php-security-checker
RUN curl -L https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.4/local-php-security-checker_2.0.4_linux_amd64 -o /home/noroot/local-php-security-checker && chmod +x /home/noroot/local-php-security-checker && echo 'alias local-php-security-checker="/home/noroot/local-php-security-checker"' >> ~/.zshrc
ENV SHELL=/bin/zsh
USER root
RUN chsh -s /bin/zsh
RUN pecl install xdebug
RUN pecl install pcov && docker-php-ext-enable pcov
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y mariadb-client
## DEV