Skip to content
Snippets Groups Projects
Commit 967d94f1 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Use prebuild docker image to execute test

parent 158fd08c
1 merge request!19Development
Pipeline #
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment