libp2p-test-plans/transport-interop/impl/js/v0.45/Dockerfile

12 lines
375 B
Docker
Raw Normal View History

# Here because we want to fetch the node_modules within docker so that it's
# installed on the same platform the test is run. Otherwise tools like `esbuild` will fail to run
FROM node:18
WORKDIR /app
COPY . .
RUN npm i && npm run build
WORKDIR /app/interop
RUN npm i && npm run build
ENTRYPOINT [ "npm", "test", "--", "--build", "false", "--types", "false", "-t", "node" ]