Sign inSign up

mersocarlin/puppeteer

By mersocarlin

•Updated almost 7 years ago

Run headless Chrome Node.js tests in a Docker container

Image
1

320

mersocarlin/puppeteer repository overview

⁠mersocarlin/puppeteer

⁠⭐ Features

āœ… Run headless Chrome Node.js tests in a Docker container.

ā šŸ“– How to

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.

Tag summary

Content type

Image

Digest

Size

212.6 MB

Last updated

almost 7 years ago

docker pull mersocarlin/puppeteer