-
Notifications
You must be signed in to change notification settings - Fork 257
Expand file tree
/
Copy pathDockerfile.node
More file actions
32 lines (25 loc) · 1.02 KB
/
Dockerfile.node
File metadata and controls
32 lines (25 loc) · 1.02 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
# CI test image for unit/lint/type tests
FROM node:24-alpine@sha256:01743339035a5c3c11a373cd7c83aeab6ed1457b55da6a69e014a95ac4e4700b 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 .eslintignore .eslintrc.js jest.config.js tsconfig.json ./
COPY jest ./jest
ADD min_packages.tar .
COPY bin ./bin
COPY packages ./packages
RUN npm ci
RUN npm run build
RUN npm pack --verbose packages/node/
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-v11-cli AS node-maze-runner
WORKDIR /app/
COPY packages/node/ .
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