* 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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user