diff --git a/Dockerfile b/Dockerfile index 5ad0ad370..a8494c361 100644 --- a/Dockerfile +++ b/Dockerfile @@ -94,6 +94,10 @@ ADD static/js/directives/components static/dist/components RUN npm install -g webpack RUN webpack +# Run front-end tests +ADD karma.conf.js karma.conf.js +RUN npm test + # Install Grunt RUN npm install -g grunt-cli @@ -104,9 +108,6 @@ RUN cd grunt && npm install # Run grunt RUN cd grunt && grunt -# Run front-end tests -RUN npm test - # Optimize our images ADD static/img static/img RUN jpegoptim static/img/**/*.jpg