Skip to content
Draft
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
6 changes: 3 additions & 3 deletions utils/build/docker/nodejs/anthropic-js.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ RUN uname -r
# print versions
RUN node --version && npm --version && curl --version

COPY utils/build/docker/nodejs/anthropic_app /usr/app

WORKDIR /usr/app

RUN npm install || sleep 60 && npm install
COPY utils/build/docker/nodejs/anthropic_app /usr/app
RUN npm ci || sleep 30 && npm ci

RUN if [ "$FRAMEWORK_VERSION" = "latest" ]; then \
npm install @anthropic-ai/sdk; \
else \
Expand Down
14 changes: 6 additions & 8 deletions utils/build/docker/nodejs/express4-typescript.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ RUN uname -r
# print versions
RUN node --version && npm --version && curl --version

COPY utils/build/docker/nodejs/express4-typescript /usr/app

WORKDIR /usr/app

COPY utils/build/docker/nodejs/express4-typescript /usr/app
RUN npm ci || sleep 30 && npm ci

EXPOSE 7777

Expand All @@ -22,16 +22,14 @@ ENV PGPORT=5433

ENV DD_DATA_STREAMS_ENABLED=true

COPY utils/build/docker/nodejs/install_ddtrace.sh binaries* /binaries/
RUN /binaries/install_ddtrace.sh
RUN npm run build

# docker startup
COPY utils/build/docker/nodejs/app.sh app.sh
RUN printf 'node dist/app.js' >> app.sh
CMD ./app.sh

COPY utils/build/docker/nodejs/install_ddtrace.sh binaries* /binaries/

RUN npm install || sleep 60 && npm install
RUN /binaries/install_ddtrace.sh
RUN npm run build
ENV DD_TRACE_HEADER_TAGS=user-agent

# docker build -f utils/build/docker/nodejs.datadog.Dockerfile -t test .
Expand Down
9 changes: 3 additions & 6 deletions utils/build/docker/nodejs/express4.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ RUN uname -r
# print versions
RUN node --version && npm --version && curl --version

COPY utils/build/docker/nodejs/express /usr/app

WORKDIR /usr/app

ENV NODE_ENV=production

RUN npm install || sleep 60 && npm install
RUN npm install "express@4.17.2" "apollo-server-express@3.13.0" "express-mongo-sanitize@2.2.0" \
|| sleep 60 \
&& npm install "express@4.17.2" "apollo-server-express@3.13.0" "express-mongo-sanitize@2.2.0"
COPY utils/build/docker/nodejs/express /usr/app
COPY utils/build/docker/nodejs/express4/package.json utils/build/docker/nodejs/express4/package-lock.json ./
RUN npm ci || sleep 30 && npm ci

EXPOSE 7777

Expand Down
Loading
Loading