We have this Dockerfile:
FROM mcr.microsoft.com/playwright:v1.20.0-focal
ADD ./sometest.e2e.spec.js /
RUN yarn add playwright && \
PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers npx playwright install && \
yarn add @playwright/test
RUN PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers ./node_modules/playwright/node_modules/.bin/playwright test
When we try to build, during bitbucket pipelines (which in turn uses the image docker:20.10.8-alpine3.13) this error happens:
...
Step 4/4 : RUN PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers ./node_modules/playwright/node_modules/.bin/playwright test
---> Running in d8a3b2a2d013
[Error: EACCES: permission denied, scandir '/proc/tty/driver'] {
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/proc/tty/driver'
}
Locally it works, but in pipelines, even if I do a simple "ls" command in the /proc/tty/driver folder it crashes with permission denied.
Any tips? Thank you!