alpine-node-chromium icon indicating copy to clipboard operation
alpine-node-chromium copied to clipboard

Node 8 fails to build on docker hub

Open josephlimb opened this issue 6 years ago • 1 comments

FYI: Dockerhub is throwing the following error upon build:

Build failed: The command '/bin/sh -c echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && apk --no-cache update && apk --no-cache upgrade && apk add --no-cache --virtual .build-deps gifsicle pngquant optipng libjpeg-turbo-utils udev ttf-opensans chromium && rm -rf /var/cache/apk/* /tmp/*' returned a non-zero code: 2

https://hub.docker.com/r/rastasheep/alpine-node-chromium/builds/bexrrmephx5djohxjoewnra/

josephlimb avatar Jun 20 '18 15:06 josephlimb

this is because of the parent node image use a old alpine version.

move the apk update and upgrade commands before adding the edge repositories fix this.

gimler avatar Aug 28 '18 05:08 gimler