17 lines
361 B
Docker
17 lines
361 B
Docker
FROM mcr.microsoft.com/playwright:v1.59.1-noble
|
|
|
|
WORKDIR /work
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends libnss3-tools \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
COPY . .
|
|
RUN chmod +x /work/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT ["/work/docker-entrypoint.sh"]
|
|
CMD ["yarn", "test"]
|