12 lines
375 B
Docker
12 lines
375 B
Docker
|
# 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" ]
|