From a46752fcb88d7a755fec9e7225428f96dbe5300d Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Wed, 28 Aug 2024 13:54:39 -0700 Subject: [PATCH] fixed docker package.json path issue --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 23e03c7..7671e08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,7 +63,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ COPY --from=dependencies /app/node_modules ./node_modules # Use Node to read in the package.json and determine the Node output dist dir -RUN SDK_META_SERVER_DIST_DIR_RELATIVE=$(node -p "path.dirname(require('${SDK_META_SERVER_DIR}/package').exports['.'].node.require.default)") \ +RUN SDK_META_SERVER_DIST_DIR_RELATIVE=$(node -p "path.dirname(require('${SDK_META_SERVER_DIR}/package').exports['.'].node.import.default)") \ && SDK_META_SERVER_DIST_DIR=$(node -p "path.join('${SDK_META_SERVER_DIR}', '${SDK_META_SERVER_DIST_DIR_RELATIVE}')") \ # create the expected destination directory && mkdir -p ${SDK_META_SERVER_DIST_DIR_RELATIVE} \