Explorar el Código

Cache gems/node modules in docker CI

Andrew Swistak hace 6 años
padre
commit
7195836d28
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      docker-compose.ci.yml

+ 7 - 0
docker-compose.ci.yml

@@ -20,6 +20,9 @@ services:
       - SELENIUM_CHROME_HOST=selenium_chrome
       - SELENIUM_FIREFOX_HOST=selenium_firefox
       - SELENIUM_PORT=4444
+    volumes:
+      - gems:/usr/local/bundle
+      - node_modules:/app/node_modules
     working_dir: /app
 
   test_db:
@@ -38,3 +41,7 @@ services:
     image: selenium/standalone-chrome-debug:latest
     logging:
       driver: none
+
+volumes:
+  gems:
+  node_modules: