Skip to content

Commit

Permalink
fixed docker package.json path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Aug 28, 2024
1 parent 89b39ee commit a46752f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down

0 comments on commit a46752f

Please sign in to comment.