diff --git a/Dockerfile b/Dockerfile index 1bf7ab50..41aa1d2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,6 @@ WORKDIR /app/src COPY package.json package-lock.json ./ RUN npm ci -# Copy rest of the app source -COPY . /app/src - FROM base AS debug RUN apt-get update && apt-get install -y \ @@ -17,6 +14,9 @@ RUN apt-get update && apt-get install -y \ iputils-ping \ dnsutils +# Copy app source for development +COPY . /app/src + FROM dcycle/broken-link-checker:3 AS broken_link_checker FROM httpd:2.4.64 AS httpd_serve @@ -61,7 +61,13 @@ RUN apt-get update && apt-get install -y \ # Install Playwright browsers RUN npx playwright install chromium --with-deps +# Copy app source for testing +COPY . /app/src + # Set default command to run BDD tests CMD ["npm", "run", "test:bdd"] FROM base + +# Copy app source for the final stage +COPY . /app/src