diff --git a/Dockerfile b/Dockerfile index 55ea12d..612e6ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ # Stage 1: Base setup FROM node:20 AS base +FROM base as test + WORKDIR /app COPY /project/package*.json ./ @@ -20,9 +22,6 @@ RUN apt-get update && apt-get install -y \ ENV CHROME_BIN="/usr/bin/google-chrome" -# Stage 2: Test -FROM base as test - COPY /project/ . RUN ng test --watch=false --browsers=ChromeHeadlessNoSandbox