I’m having an issue in the build phase of my deployment where my npm install script requires downloads from github - linux-arm64-57_binding.node & phantomjs-2.1.1-linux-x86_64.tar.bz2. I’ve been able to build my image successfully using docker on my local machine and have compared the loggings from the two. Any idea why building my local docker image succeeds while it fails during my resin build?
SUCCESSFUL LOCAL DOCKER BUILD
> node-sass@4.7.2 install /usr/src/app/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/linux-x64-57_binding.node
Download complete ] - :
Binary saved to /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /root/.npm/node-sass/4.7.2/linux-x64-57_binding.node
> phantomjs-prebuilt@2.1.16 install /usr/src/app/node_modules/phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
UNSUCCESSFUL RESIN DOCKER BUILD
[main] > node-sass@4.7.2 install /usr/src/app/node_modules/node-sass
[main] > node scripts/install.js
[main] Downloading binary from { SAME GITHUB LINK AS SUCCESSFUL BUILD - I can’t include more than 2 links b/c I’m a new user }
[main] Cannot download { SAME GITHUB LINK AS SUCCESSFUL BUILD }
[main] HTTP error 404 Not Found
[main] Hint: If github.com is not accessible in your location
[main] try setting a proxy via HTTP_PROXY, e.g.
[main] export HTTP_PROXY=http://example.com:1234
[main] or configure npm proxy via
[main] npm config set proxy http://example.com:8080
[main]
[main] > phantomjs-prebuilt@2.1.16 install /usr/src/app/node_modules/phantomjs-prebuilt
[main] > node install.js
[main] PhantomJS not found on PATH
[main] Unexpected platform or architecture: linux/arm64
[main] It seems there is no binary available for your platform/architecture
[main] Try to install PhantomJS globally