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
64
64
# Warm up v8 compile cache
65
65
RUN node -e "require('/nodejs/node_modules/datadog-lambda-js/runtime/module_importer').initTracer()"
66
66
67
+ # Remove leftover temp files
68
+ RUN rm -rf /tmp/yarn-*
69
+
67
70
FROM 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 {
38
38
# between different node runtimes.
39
39
temp_dir=$( mktemp -d)
40
40
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
42
42
43
43
# Zip to destination, and keep directory structure as based in $temp_dir
44
44
(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) {
27
27
}
28
28
29
29
exports . initTracer = function ( ) {
30
- compileCache ( )
30
+ // compileCache()
31
31
32
32
// Looks for the function local version of dd-trace first, before using
33
33
// the version provided by the layer
You can’t perform that action at this time.
0 commit comments