Przeglądaj źródła

soving python issue when using INSTALL_NODE=true and VueJS with Laravel.

Jérôme Desseaux 7 lat temu
rodzic
commit
c5ccc2f4ff
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 0 1
      env-example
  2. 4 2
      workspace/Dockerfile-71

+ 0 - 1
env-example

@@ -322,4 +322,3 @@ PHP_IDE_CONFIG=serverName=laradock
 # Fix for windows users to make sure the application path works.
 
 COMPOSE_CONVERT_WINDOWS_PATHS=1
-

+ 4 - 2
workspace/Dockerfile-71

@@ -52,7 +52,8 @@ ENV PGID ${PGID}
 
 RUN groupadd -g ${PGID} laradock && \
     useradd -u ${PUID} -g laradock -m laradock && \
-    apt-get update -yqq
+    apt-get update -yqq \
+    apt-get install -y python2.7
 
 #####################################
 # SOAP:
@@ -682,7 +683,8 @@ RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
 # Clean up
 USER root
 RUN apt-get clean && \
-    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
+    npm config set python /usr/bin/python2.7
 
 # Set default work directory
 WORKDIR /var/www