File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -64,5 +64,9 @@ RUN find /nodejs/node_modules -name "*.md" -delete
6464# Warm up v8 compile cache
6565RUN node -e "require('/nodejs/node_modules/datadog-lambda-js/runtime/module_importer').initTracer()"
6666
67+ # Remove leftover temp files
68+ RUN rm -rf /tmp/yarn-*
69+
6770FROM scratch
68- COPY --from=builder /nodejs /
71+ COPY --from=builder /nodejs /nodejs
72+ COPY --from=builder /tmp /tmp
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function docker_build_zip {
3838 # between different node runtimes.
3939 temp_dir=$( mktemp -d)
4040 docker buildx build -t datadog-lambda-layer-node:$1 . --no-cache \
41- --build-arg image=registry.ddbuild.io/images/mirror/node:${node_image_version} -bullseye --progress=plain -o $temp_dir /nodejs
41+ --build-arg image=registry.ddbuild.io/images/mirror/node:${node_image_version} -bullseye --progress=plain -o $temp_dir
4242
4343 # Zip to destination, and keep directory structure as based in $temp_dir
4444 (cd $temp_dir && zip -q -r $destination ./)
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ exports.import = function (path) {
2727}
2828
2929exports . initTracer = function ( ) {
30- compileCache ( )
30+ // compileCache()
3131
3232 // Looks for the function local version of dd-trace first, before using
3333 // the version provided by the layer
You can’t perform that action at this time.
0 commit comments