Skip to content

Commit

Permalink
fix: gradle 5.4 Java 11 Dockerfile npm install
Browse files Browse the repository at this point in the history
When building docker image we see error message:

The following packages have unmet dependencies:
 nodejs : Conflicts: npm
 npm : Depends: node-gyp (>= 3.6.2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Removing explicit npm install from 'apt-get install' fixes issue.

Just doing 'apt-get install -y nodejs' will install npm.
  • Loading branch information
gitphill committed Jan 28, 2021
1 parent 8569305 commit 50d34c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile.gradle-5.4_java11
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ RUN apt-get update && \
curl -L https://services.gradle.org/distributions/gradle-5.4-bin.zip -o gradle-5.4-bin.zip && \
unzip gradle-5.4-bin.zip -d /home/node/ && \
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get install -y nodejs jq npm && \
apt-get install -y nodejs jq && \
node -v && \
npm -v && \
npm install --global snyk snyk-to-html && \
apt-get autoremove -y && \
apt-get clean && \
Expand Down

0 comments on commit 50d34c0

Please sign in to comment.