2023-06-08 21:56:17 +00:00
|
|
|
# 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
|
2024-06-06 09:53:35 +00:00
|
|
|
FROM node:lts
|
|
|
|
|
2023-06-08 21:56:17 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2024-06-06 09:53:35 +00:00
|
|
|
COPY package*.json .aegir.js tsconfig.json ./
|
|
|
|
COPY src ./src
|
|
|
|
COPY test ./test
|
|
|
|
|
|
|
|
# disable colored output and CLI animation from test runners
|
|
|
|
ENV CI true
|
|
|
|
|
|
|
|
RUN npm ci
|
|
|
|
RUN npm run build
|
2023-06-08 21:56:17 +00:00
|
|
|
|
2024-06-06 09:53:35 +00:00
|
|
|
ENTRYPOINT npm test -- -t node
|