-
Notifications
You must be signed in to change notification settings - Fork 257
Expand file tree
/
Copy pathDockerfile.node
More file actions
35 lines (27 loc) · 1.1 KB
/
Dockerfile.node
File metadata and controls
35 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# CI test image for unit/lint/type tests
FROM node:18-alpine@sha256:974afb6cbc0314dc6502b14243b8a39fbb2d04d975e9059dd066be3e274fbb25 AS node-feature-builder
RUN apk add --update bash python3 make gcc g++ musl-dev xvfb-run curl
WORKDIR /app
COPY package*.json ./
COPY babel.config.js lerna.json eslint.config.mjs jest.config.js tsconfig.json ./
COPY jest ./jest
ADD min_packages.tar .
COPY .rollup ./.rollup
COPY bin ./bin
COPY packages ./packages
RUN npm ci
RUN npm run build
RUN npm pack --verbose packages/core/
RUN npm pack --verbose packages/node/
RUN npm pack --verbose packages/path-normalizer/
RUN npm pack --verbose packages/plugin-express/
RUN npm pack --verbose packages/plugin-koa/
RUN npm pack --verbose packages/plugin-restify/
RUN npm pack --verbose packages/plugin-hono/
# The maze-runner node tests
FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v9-cli AS node-maze-runner
WORKDIR /app/
COPY test/node/features test/node/features
COPY --from=node-feature-builder /app/*.tgz ./
RUN for d in test/node/features/fixtures/*/; do cp /app/*.tgz "$d"; done
WORKDIR /app/test/node