Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .shellcheck
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ TODO=(
utils/scripts/docker_base_image.sh
utils/build/docker/postgres-init-db.sh
utils/build/docker/nodejs/app.sh
utils/build/docker/nodejs/install_ddtrace.sh

utils/build/docker/set-uds-transport.sh
utils/build/docker/python/flask/app.sh
utils/build/docker/python/install_ddtrace.sh
Expand Down
12 changes: 7 additions & 5 deletions utils/build/docker/nodejs/anthropic-js.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
FROM node:22-alpine
ARG FRAMEWORK_VERSION

COPY --from=oven/bun:1.3.13-alpine /usr/local/bin/bun /usr/local/bin/bun

RUN apk add --no-cache bash curl git jq

RUN uname -r

# print versions
RUN node --version && npm --version && curl --version
RUN node --version && npm --version && bun --version && curl --version

WORKDIR /usr/app

COPY utils/build/docker/nodejs/anthropic_app /usr/app
RUN npm ci || (sleep 30 && npm ci)
RUN bun install --frozen-lockfile --network-concurrency 8 --linker=hoisted

RUN if [ "$FRAMEWORK_VERSION" = "latest" ]; then \
npm install @anthropic-ai/sdk; \
bun add --network-concurrency 8 @anthropic-ai/sdk; \
else \
npm install @anthropic-ai/sdk@$FRAMEWORK_VERSION; \
bun add --network-concurrency 8 @anthropic-ai/sdk@$FRAMEWORK_VERSION; \
fi

COPY utils/build/docker/nodejs/install_ddtrace.sh binaries* /binaries/
Expand All @@ -25,4 +27,4 @@ RUN /binaries/install_ddtrace.sh
# docker startup
COPY utils/build/docker/nodejs/app.sh app.sh
RUN printf 'node app.js' >> app.sh
CMD ./app.sh
CMD ./app.sh
143 changes: 143 additions & 0 deletions utils/build/docker/nodejs/anthropic_app/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions utils/build/docker/nodejs/express4-typescript.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:18-alpine

COPY --from=oven/bun:1.3.13-alpine /usr/local/bin/bun /usr/local/bin/bun

RUN apk add --no-cache bash curl git jq

RUN uname -r
Expand Down
2 changes: 2 additions & 0 deletions utils/build/docker/nodejs/express4.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:18-alpine

COPY --from=oven/bun:1.3.13-alpine /usr/local/bin/bun /usr/local/bin/bun

RUN apk add --no-cache bash curl git jq

RUN uname -r
Expand Down
2 changes: 2 additions & 0 deletions utils/build/docker/nodejs/express5.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:18-alpine

COPY --from=oven/bun:1.3.13-alpine /usr/local/bin/bun /usr/local/bin/bun

RUN apk add --no-cache bash curl git jq

RUN uname -r
Expand Down
2 changes: 2 additions & 0 deletions utils/build/docker/nodejs/fastify.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:22-alpine

COPY --from=oven/bun:1.3.13-alpine /usr/local/bin/bun /usr/local/bin/bun

RUN apk add --no-cache bash curl git jq

RUN uname -r
Expand Down
12 changes: 7 additions & 5 deletions utils/build/docker/nodejs/google_genai-js.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
FROM node:22-alpine
ARG FRAMEWORK_VERSION

COPY --from=oven/bun:1.3.13-alpine /usr/local/bin/bun /usr/local/bin/bun

RUN apk add --no-cache bash curl git jq

RUN uname -r

# print versions
RUN node --version && npm --version && curl --version
RUN node --version && npm --version && bun --version && curl --version

WORKDIR /usr/app

COPY utils/build/docker/nodejs/google_genai_app /usr/app
RUN npm ci || (sleep 30 && npm ci)
RUN bun install --frozen-lockfile --network-concurrency 8 --linker=hoisted

RUN if [ "$FRAMEWORK_VERSION" = "latest" ]; then \
npm install @google/genai; \
bun add --network-concurrency 8 @google/genai; \
else \
npm install @google/genai@$FRAMEWORK_VERSION; \
bun add --network-concurrency 8 @google/genai@$FRAMEWORK_VERSION; \
fi

COPY utils/build/docker/nodejs/install_ddtrace.sh binaries* /binaries/
Expand All @@ -25,4 +27,4 @@ RUN /binaries/install_ddtrace.sh
# docker startup
COPY utils/build/docker/nodejs/app.sh app.sh
RUN printf 'node app.js' >> app.sh
CMD ./app.sh
CMD ./app.sh
Loading
Loading