-
Notifications
You must be signed in to change notification settings - Fork 4.5k
docker build failed with the shipped Dockerfile #4939
Copy link
Copy link
Closed
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
docker build -t aws-cdk . from current master branch returns error.
Reproduction Steps
docker build -t aws-cdk .Error Log
error eslint@6.6.0: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "10.3.0"
error Found incompatible module.
full log
Sending build context to Docker daemon 98.71MB
Step 1/8 : FROM amazonlinux:2
---> 6ef285e58e33
Step 2/8 : WORKDIR /app
---> Using cache
---> 4ff3af7726ad
Step 3/8 : ENV NODE_VERSION 10.3.0
---> Using cache
---> 95b2b9c1b5c5
Step 4/8 : ENV YARN_VERSION 1.19.1
---> Using cache
---> fa29f00c7a84
Step 5/8 : RUN yum -y --security update && yum install -y git rsync zip unzip tar xz python3 python3-dev py3-setuptools && yum
clean all && rm -rf /var/cache/yum && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" && curl -fsSLO --com
pressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt" && grep " node-v$NODE_VERSION-linux-x64.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && ln -s /usr/local/bin/node /usr/local/bin/nodejs && rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt && gpg --list-keys 23E7166788B63E1E >/dev/null 2>&1 || (curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --import) && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && tar zvxf yarn-v$YARN_VERSION.tar.gz -C /usr/local --strip-components=1 --no-same-owner && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
---> Using cache
---> 497437ac21a3
Step 6/8 : COPY . .
---> 225a454b20f4
Step 7/8 : RUN ./build.sh && ./link-all.sh
---> Running in 3bc91f304124
=============================================================================================
installing...
yarn install v1.19.1
[1/5] Resolving packages...
[2/5] Auditing packages...
[3/5] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
error eslint@6.6.0: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "10.3.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c ./build.sh && ./link-all.sh' returned a non-zero code: 1
Environment
- CLI Version :
- Framework Version:
- OS :
- Language :
Other
This is 🐛 Bug Report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.