* move hooks to bash

* add yml allow dir in storage/app
+ slow log options for mariadb
* nvm fix in workspace build instructions
This commit is contained in:
2020-07-16 23:39:44 +03:00
parent 4b434f2268
commit 88490afe77
10 changed files with 18 additions and 8 deletions

View File

@ -259,6 +259,8 @@ RUN if [ ${INSTALL_FSWATCH} = true ]; then \
# Node / NVM:
###########################################################################
USER laradock
# Check if NVM needs to be installed
ARG INSTALL_NODE=false
ENV INSTALL_NODE ${INSTALL_NODE}
@ -310,8 +312,10 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
USER root
RUN if [ ${INSTALL_NODE} = true ]; then \
cp -R /home/laradock/.nvm /root/ && \
chown -R root:root /root/.nvm && \
echo "" >> ~/.bashrc && \
echo 'export NVM_DIR="/home/laradock/.nvm"' >> ~/.bashrc && \
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc && \
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
;fi