From 967d94f1abc7bbf5989c35f097ee27ad947dfa15 Mon Sep 17 00:00:00 2001 From: FORESTIER Fabien <fabien.forestier@soprasteria.com> Date: Fri, 22 Feb 2019 10:04:28 +0100 Subject: [PATCH] Use prebuild docker image to execute test --- Dockerfile-testing | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Dockerfile-testing b/Dockerfile-testing index 5e135bf7..861fca26 100644 --- a/Dockerfile-testing +++ b/Dockerfile-testing @@ -1,12 +1,4 @@ -FROM docker.io/node:8-stretch as builder - -ARG DEBIAN_FRONTEND=noninteractive - -# Chromium is an headless browser that will let us run or front tests -RUN apt-get update \ - && apt-get install -y chromium - -ENV CHROME_BIN=chromium +FROM avatsaev/angular-chrome-headless # Copy package.json first allow to cache the modules COPY ./package.json /app/package.json @@ -16,9 +8,4 @@ COPY . /app WORKDIR /app # run the test command defined in the package.json -RUN npm run test:ci - -FROM nginx - -COPY --from=builder /app/coverage /usr/share/nginx/html/coverage -COPY --from=builder /app/tests /usr/share/nginx/html/tests +RUN npm run test:ci \ No newline at end of file -- GitLab