=> ERROR [worker 10/16] RUN npm install -g phantomjs-prebuilt --unsafe-perm && cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt && npm instal 27.8s
[worker 10/16] RUN npm install -g phantomjs-prebuilt --unsafe-perm && cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt && npm install 'form-data@^2.5.5' && npm install 'qs@^6.14.1' && cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt/node_modules/request && npm install 'form-data@^2.5.5' && npm install 'qs@^6.14.1' && sync && rm -rf /tmp/* ~/.npm && rdfind -minsize 1024 -makehardlinks true -makeresultsfile false /root/.nvm:
1.139 npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated
1.340 npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
2.513 npm WARN deprecated uuid@3.4.0: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
2.628 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
4.451 /root/.nvm/versions/node/v14.21.3/bin/phantomjs -> /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt/bin/phantomjs
4.465
4.465 > phantomjs-prebuilt@2.1.16 install /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt
4.465 > node install.js
4.465
4.912 Considering PhantomJS found at /usr/local/node/phantomjs
4.912 Looks like an npm install -g
4.914 Could not link global install, skipping...
4.918 Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
4.919 Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
4.919 Receiving...
25.30
25.32 Received 22866K total.
25.33 Extracting tar contents (via spawned process)
27.62 Error extracting archive
27.62 Phantom installation failed Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples: Cannot mkdir: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/colorwheel.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/scandir.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/page_events.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/loadspeed.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/injectme.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/render_multi_url.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/server.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/netlog.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/pagecallback.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/module.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/arguments.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/universe.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/openurlwithproxy.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/sleepsort.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/modernizr.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/unrandomize.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/hello.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/stdin-stdout-stderr.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/fibo.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/phantomwebintro.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/echoToFile.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/post.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/loadurlwithoutcss.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/child_process-examples.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/printenv.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/useragent.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/rasterize.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/outputEncoding.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/waitfor.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/serverkeepalive.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/postserver.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/printmargins.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/version.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/run-qunit.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/features.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/netsniff.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/walk_through_frames.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/printheaderfooter.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/responsive-screenshot.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/countdown.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/detectsniff.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/simpleserver.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/postjson.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/run-jasmine2.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/run-jasmine.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/README.md: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/LICENSE.BSD: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/bin: Cannot mkdir: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/bin/phantomjs: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/third-party.txt: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/ChangeLog: Cannot open: Function not implemented
27.62 tar: Exiting with failure status due to previous errors
27.62
27.62 at ChildProcess.exithandler (child_process.js:383:12)
27.62 at ChildProcess.emit (events.js:400:28)
27.62 at maybeClose (internal/child_process.js:1088:16)
27.62 at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5) {
27.62 killed: false,
27.62 code: 2,
27.62 signal: null,
27.62 cmd: 'tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2'
27.62 } Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples: Cannot mkdir: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/colorwheel.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/scandir.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/page_events.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/loadspeed.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/injectme.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/render_multi_url.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/server.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/netlog.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/pagecallback.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/module.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/arguments.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/universe.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/openurlwithproxy.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/sleepsort.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/modernizr.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/unrandomize.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/hello.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/stdin-stdout-stderr.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/fibo.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/phantomwebintro.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/echoToFile.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/post.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/loadurlwithoutcss.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/child_process-examples.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/printenv.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/useragent.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/rasterize.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/outputEncoding.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/waitfor.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/serverkeepalive.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/postserver.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/printmargins.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/version.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/run-qunit.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/features.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/netsniff.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/walk_through_frames.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/printheaderfooter.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/responsive-screenshot.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/countdown.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/detectsniff.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/simpleserver.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/postjson.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/run-jasmine2.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/examples/run-jasmine.js: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/README.md: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/LICENSE.BSD: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/bin: Cannot mkdir: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/bin/phantomjs: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/third-party.txt: Cannot open: Function not implemented
27.62 tar: phantomjs-2.1.1-linux-x86_64/ChangeLog: Cannot open: Function not implemented
27.62 tar: Exiting with failure status due to previous errors
27.62
27.62 at ChildProcess.exithandler (child_process.js:383:12)
27.62 at ChildProcess.emit (events.js:400:28)
27.62 at maybeClose (internal/child_process.js:1088:16)
27.62 at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
27.78 npm ERR! code ELIFECYCLE
27.78 npm ERR! errno 1
27.78 npm ERR! phantomjs-prebuilt@2.1.16 install: node install.js
27.78 npm ERR! Exit status 1
27.78 npm ERR!
27.78 npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.
27.78 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
27.79
27.79 npm ERR! A complete log of this run can be found in:
27.79 npm ERR! /root/.npm/_logs/2026-07-07T03_59_28_646Z-debug.log
[+] build 0/1
⠙ Image dsarchive/dsa_common Building 1081.7s
Dockerfile:133
132 | # Install phantomjs for testing
133 | >>> RUN npm install -g phantomjs-prebuilt --unsafe-perm && \
134 | >>> cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt && \
135 | >>> npm install 'form-data@^2.5.5' && \
136 | >>> npm install 'qs@^6.14.1' && \
137 | >>> cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt/node_modules/request && \
138 | >>> npm install 'form-data@^2.5.5' && \
139 | >>> npm install 'qs@^6.14.1' && \
140 | >>> sync && \
141 | >>> rm -rf /tmp/* ~/.npm && \
142 | >>> rdfind -minsize 1024 -makehardlinks true -makeresultsfile false /root/.nvm
143 |
target worker: failed to solve: process "/bin/sh -c npm install -g phantomjs-prebuilt --unsafe-perm && cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt && npm install 'form-data@^2.5.5' && npm install 'qs@^6.14.1' && cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt/node_modules/request && npm install 'form-data@^2.5.5' && npm install 'qs@^6.14.1' && sync && rm -rf /tmp/* ~/.npm && rdfind -minsize 1024 -makehardlinks true -makeresultsfile false /root/.nvm" did not complete successfully: exit code: 1
Fix
Since this step is only used for testing (per the comment # Install phantomjs for testing) and isn't required to run the archive itself, removing the entire phantomjs-prebuilt install block from the Dockerfile resolves the build failure with no impact on running DSA normally.
=> ERROR [worker 10/16] RUN npm install -g phantomjs-prebuilt --unsafe-perm && cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt && npm instal 27.8s
[+] build 0/1
⠙ Image dsarchive/dsa_common Building 1081.7s
Dockerfile:133
132 | # Install phantomjs for testing
133 | >>> RUN npm install -g phantomjs-prebuilt --unsafe-perm && \
134 | >>> cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt && \
135 | >>> npm install 'form-data@^2.5.5' && \
136 | >>> npm install 'qs@^6.14.1' && \
137 | >>> cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt/node_modules/request && \
138 | >>> npm install 'form-data@^2.5.5' && \
139 | >>> npm install 'qs@^6.14.1' && \
140 | >>> sync && \
141 | >>> rm -rf /tmp/* ~/.npm && \
142 | >>> rdfind -minsize 1024 -makehardlinks true -makeresultsfile false /root/.nvm
143 |
target worker: failed to solve: process "/bin/sh -c npm install -g phantomjs-prebuilt --unsafe-perm && cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt && npm install 'form-data@^2.5.5' && npm install 'qs@^6.14.1' && cd /root/.nvm/versions/node/v14.21.3/lib/node_modules/phantomjs-prebuilt/node_modules/request && npm install 'form-data@^2.5.5' && npm install 'qs@^6.14.1' && sync && rm -rf /tmp/* ~/.npm && rdfind -minsize 1024 -makehardlinks true -makeresultsfile false /root/.nvm" did not complete successfully: exit code: 1
Fix
Since this step is only used for testing (per the comment
# Install phantomjs for testing) and isn't required to run the archive itself, removing the entirephantomjs-prebuiltinstall block from the Dockerfile resolves the build failure with no impact on running DSA normally.