rastasheep / alpine-node-chromium

Dockerized chromium inside node alpine image
MIT License
37 stars 22 forks source link

Node 8 fails to build on docker hub #7

Open josephlimb opened 6 years ago

josephlimb commented 6 years ago

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/

gimler commented 6 years ago

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.