File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ ARG GOVCMS_GITHUB_TOKEN
1212ENV WEBROOT=web
1313
1414# Clean up base image so as not to conflict with any changes.
15- RUN rm -rf /app
15+ RUN mv /app/web/sites/all/modules /scaffold_modules \
16+   && rm -rf /app
1617
1718RUN composer config --global github-oauth.github.com $GOVCMS_GITHUB_TOKEN
1819
@@ -22,6 +23,8 @@ COPY custom /app/custom
2223
2324# Run composer. Additional `rm`s can be added to reduce the image size, with diminishing returns.
2425RUN composer install --no-dev --no-interaction --no-suggest \
26+   && mkdir -p /app/web/sites/all \
27+   && mv /scaffold_modules /app/web/sites/all/modules \
2528  && rm -rf ~/.composer/cache \
2629  && rm -rf /app/web/core/tests \
2730  && rm -rf /app/web/modules/contrib/webform/tests
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments