Skip to content

Commit 2fcc630

Browse files
authored
add ignore-engines flag (#793)
1 parent 398aed1 commit 2fcc630

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN mkdir -p /nodejs/node_modules/
88
# Install dev dependencies
99
COPY . datadog-lambda-js
1010
WORKDIR /datadog-lambda-js
11-
RUN yarn install
11+
RUN yarn install --ignore-engines
1212

1313
# Build the lambda layer
1414
RUN yarn build
@@ -39,7 +39,7 @@ RUN rm -rf node_modules
3939
RUN node ./scripts/move_ddtrace_dependency.js "$(cat package.json)" > package-new.json
4040
RUN mv package-new.json package.json
4141
# Install dependencies
42-
RUN yarn install --production=true --ignore-optional
42+
RUN yarn install --production=true --ignore-optional --ignore-engines
4343
# Copy the dependencies to the modules folder
4444
RUN cp -rf node_modules/* /nodejs/node_modules
4545

0 commit comments

Comments
 (0)