Run headless Chrome Node.js tests in a Docker container
320
ā Run headless Chrome Node.js tests in a Docker container.
In Dockerfile file:
FROM mersocarlin/puppeteer
# create app directory in container
RUN mkdir -p /app
# set /app directory as default working directory
WORKDIR /app
# copy package.json, yarn.lock (or package-lock.json) and install dependencies
ADD package.json yarn.lock /app/
RUN yarn --pure-lockfile
COPY . /app/
CMD [ "yarn", "test" ]
For more information, please refer to the examplesā folder.
Content type
Image
Digest
Size
212.6 MB
Last updated
almost 7 years ago
docker pull mersocarlin/puppeteer