Enable docker-compose exec workspace npm
(and yarn, etc.) (#1743)
* fix node PATH to enable docker-compose exec workspace npm * add PATH for yarn to enable docker-compose exec workspace yarn
This commit is contained in:
parent
39469e1404
commit
2e2cb6df22
@ -448,6 +448,7 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
|||||||
&& if [ ${INSTALL_NPM_VUE_CLI} = true ]; then \
|
&& if [ ${INSTALL_NPM_VUE_CLI} = true ]; then \
|
||||||
npm install -g @vue/cli \
|
npm install -g @vue/cli \
|
||||||
;fi \
|
;fi \
|
||||||
|
&& ln -s `npm bin --global` /home/laradock/.node-bin \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Wouldn't execute when added to the RUN statement in the above block
|
# Wouldn't execute when added to the RUN statement in the above block
|
||||||
@ -468,7 +469,7 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
|||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Add PATH for node
|
# Add PATH for node
|
||||||
ENV PATH $PATH:$NVM_DIR/versions/node/v${NODE_VERSION}/bin
|
ENV PATH $PATH:/home/laradock/.node-bin
|
||||||
|
|
||||||
RUN if [ ${NPM_REGISTRY} ]; then \
|
RUN if [ ${NPM_REGISTRY} ]; then \
|
||||||
. ~/.bashrc && npm config set registry ${NPM_REGISTRY} \
|
. ~/.bashrc && npm config set registry ${NPM_REGISTRY} \
|
||||||
@ -504,6 +505,9 @@ RUN if [ ${INSTALL_YARN} = true ]; then \
|
|||||||
echo 'export PATH="$YARN_DIR/bin:$PATH"' >> ~/.bashrc \
|
echo 'export PATH="$YARN_DIR/bin:$PATH"' >> ~/.bashrc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Add PATH for YARN
|
||||||
|
ENV PATH $PATH:/home/laradock/.yarn/bin
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# PHP Aerospike:
|
# PHP Aerospike:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user