18 lines
417 B
Docker
18 lines
417 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:lts
|
|
|
|
WORKDIR /app
|
|
|
|
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
|
|
|
|
ENTRYPOINT npm test -- -t node
|