-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathDockerfile.manage-ui-test
More file actions
31 lines (23 loc) · 1.03 KB
/
Dockerfile.manage-ui-test
File metadata and controls
31 lines (23 loc) · 1.03 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
# ------------------------------------------------------------------------------
# This Dockerfile builds an image for running Playwright image snapshot tests on Linux.
#
# Intended usage:
# docker build -f Dockerfile.manage-ui-test -t agents-ui-test:local .
# docker run --rm -t -v "$PWD":/app agents-ui-test:local
#
# Notes:
# - `node_modules` is stored in a Docker volume to avoid host OS conflicts
# - `pnpm install` runs at build time for reproducible, cached installs
# ------------------------------------------------------------------------------
FROM node:22
WORKDIR /app
VOLUME /app/node_modules
USER root
RUN npx playwright install chromium --with-deps # install browsers + dependencies for Chromium only
RUN corepack enable
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY agents-manage-ui/package.json agents-manage-ui/
COPY packages/agents-core/package.json packages/agents-core/
COPY patches/ patches/
RUN pnpm install --frozen-lockfile
CMD ["bash", "-lc", "pnpm --filter @inkeep/agents-manage-ui test .browser.test."]