🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(docker): statically set ddtrace version (#14475)
Nimar4ea8c7a5607e
diff --git a/web/Dockerfile b/web/Dockerfileindex 2bff398224..cc6f77d471 100644--- a/web/Dockerfile+++ b/web/Dockerfile@@ -145,13 +145,10 @@ RUN adduser --system --uid ${UID} nextjsRUN npm install -g --no-package-lock --no-save [email protected]-COPY --from=builder --chown=nextjs:nodejs /app/web/package.json .-# Install dd-trace only if NEXT_PUBLIC_LANGFUSE_CLOUD_REGION is configuredARG NEXT_PUBLIC_LANGFUSE_CLOUD_REGIONRUN if [ -n "$NEXT_PUBLIC_LANGFUSE_CLOUD_REGION" ]; then \- DD_TRACE_VERSION="$(node -p 'require("./package.json").dependencies["dd-trace"]')"; \- npm install --no-package-lock --no-save "dd-trace@${DD_TRACE_VERSION}"; \+ npm install --no-package-lock --no-save [email protected]; \fi# npm is only used for the installs above; remove it from the final runtime image.@@ -161,6 +158,7 @@ RUN rm -rf /usr/local/lib/node_modules/npm && \COPY --from=migrate-builder /out/migrate /usr/bin/migrateCOPY --from=builder --chown=nextjs:nodejs /app/web/next.config.mjs .+COPY --from=builder --chown=nextjs:nodejs /app/web/package.json .# Automatically leverage output traces to reduce image size# https://nextjs.org/docs/advanced-features/output-file-tracing