Skip to content

Commit

Permalink
feat: update Dockerfile for testing
Browse files Browse the repository at this point in the history
Add .dockerignore to ignore node_modules folders.
  • Loading branch information
Pavel-Tyan committed Dec 24, 2024
1 parent f3c8165 commit d77e336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
10 changes: 3 additions & 7 deletions playwright/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
npm run build

0 comments on commit d77e336

Please sign in to comment.