-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
48 lines (40 loc) · 1.67 KB
/
Copy pathDockerfile.dev
File metadata and controls
48 lines (40 loc) · 1.67 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
36
37
38
39
40
41
42
43
44
45
46
47
48
# trexsql development image.
#
# This image extends the production image (Dockerfile) with developer
# tooling that has no business shipping to production:
# - Shinylive (analytics dashboard runtime)
# - Playwright + headless Chromium (QA / design-review automation)
# - @anthropic-ai/claude-code CLI
# - GitHub CLI (gh)
#
# Build with:
# docker build -t test-trex:prod .
# docker build -t test-trex:dev -f Dockerfile.dev .
#
# In CI both images are produced from the same source tree.
ARG BASE_IMAGE=test-trex:prod
FROM ${BASE_IMAGE}
USER root
WORKDIR /usr/src
ARG TARGETARCH
ARG SHINYLIVE_VERSION=0.10.7
ARG GH_VERSION=2.65.0
# Shinylive — analytics dashboard runtime
RUN curl -sLO https://github.com/posit-dev/shinylive/releases/download/v${SHINYLIVE_VERSION}/shinylive-${SHINYLIVE_VERSION}.tar.gz && \
tar -xzf shinylive-${SHINYLIVE_VERSION}.tar.gz && \
mv shinylive-${SHINYLIVE_VERSION} shinylive && \
rm shinylive-${SHINYLIVE_VERSION}.tar.gz && \
chown -R node:node /usr/src/shinylive
# Playwright + headless Chromium for QA / design-review tools
ENV PLAYWRIGHT_BROWSERS_PATH=/usr/lib/playwright-browsers
ENV NODE_PATH=/usr/lib/node_modules
RUN npm install -g playwright@latest && \
npx playwright install --with-deps chromium && \
rm -rf /tmp/* /root/.cache/ms-playwright-*
# Claude Code CLI for subscription-based AI usage
RUN npm install -g @anthropic-ai/claude-code
# GitHub CLI for subscription-based AI usage / gh copilot
RUN curl -fsSL https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_${TARGETARCH}.deb -o /tmp/gh.deb && \
dpkg -i /tmp/gh.deb && rm /tmp/gh.deb
USER node
ENTRYPOINT ["/usr/src/entrypoint.sh"]