diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..600e365e --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +**/node_modules \ No newline at end of file diff --git a/playwright/Dockerfile b/playwright/Dockerfile index bb05122f..89191b54 100644 --- a/playwright/Dockerfile +++ b/playwright/Dockerfile @@ -4,12 +4,8 @@ RUN cd .. COPY package*.json ./ RUN npm ci COPY . . -RUN rm -r node_modules && \ - npm ci && \ - cd demo && \ - rm -r node_modules && \ - npm ci && \ +RUN cd demo && \ + npm i && \ cd .. && \ npx playwright install && \ - npm run build -CMD ["npm", "run", "test"] \ No newline at end of file + npm run build \ No newline at end of file