From ddefb324e4bf9e09a353f3ee04c461b4410d22a5 Mon Sep 17 00:00:00 2001 From: Layne Haber Date: Fri, 20 Sep 2024 19:09:41 -0600 Subject: [PATCH] fix: copy entire extension dir --- docker/cartographer/Dockerfile | 2 +- docker/lighthouse/lambda/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/cartographer/Dockerfile b/docker/cartographer/Dockerfile index 32dbe07a65..ee68871de7 100644 --- a/docker/cartographer/Dockerfile +++ b/docker/cartographer/Dockerfile @@ -66,6 +66,6 @@ ENV COMMIT_HASH ${COMMIT_HASH:-unknown} WORKDIR ${LAMBDA_TASK_ROOT} COPY --from=build /tmp/build ${LAMBDA_TASK_ROOT} COPY --from=build /usr/local/bin/dbmate /usr/local/bin/dbmate -COPY --from=public.ecr.aws/datadog/lambda-extension:latest /opt/extensions/ /opt/extensions +COPY --from=public.ecr.aws/datadog/lambda-extension:latest /opt/. /opt/ CMD ["node_modules/datadog-lambda-js/dist/handler.handler"] diff --git a/docker/lighthouse/lambda/Dockerfile b/docker/lighthouse/lambda/Dockerfile index c01f2dd9cf..71aca0439e 100644 --- a/docker/lighthouse/lambda/Dockerfile +++ b/docker/lighthouse/lambda/Dockerfile @@ -77,7 +77,7 @@ ENV COMMIT_HASH ${COMMIT_HASH:-unknown} # ----- Copy files required at runtime by the app ----- WORKDIR ${LAMBDA_TASK_ROOT} COPY --from=build /tmp/build ${LAMBDA_TASK_ROOT} -COPY --from=public.ecr.aws/datadog/lambda-extension:latest /opt/extensions/ /opt/extensions +COPY --from=public.ecr.aws/datadog/lambda-extension:latest /opt/. /opt/ # This user is created in the base image with uid and gid = 1000.