diff --git a/Dockerfile-testing b/Dockerfile-testing index 5e135bf7f2ef5ec323e3e37d75561116fbab694f..861fca26c4b3df20ac5b1ebd745dfa28c0558974 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