FROM node:22.22.0-alpine

WORKDIR /test
COPY tests/e2e/package.json tests/e2e/package-lock.json /test/
RUN npm ci --omit=dev --ignore-scripts --no-audit --no-fund
COPY tests/e2e/peer.mjs /test/peer.mjs

USER node
ENTRYPOINT ["node", "/test/peer.mjs"]
