Skip to content

Instantly share code, notes, and snippets.

@joedayz
Created May 29, 2023 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joedayz/1ba3d498d0bd0c807783065c3965b071 to your computer and use it in GitHub Desktop.
Save joedayz/1ba3d498d0bd0c807783065c3965b071 to your computer and use it in GitHub Desktop.
Log Dockerfile of Node export server
❯ docker build -t highchart-export-server .
Sending build context to Docker daemon 4.111MB
Step 1/24 : FROM node:carbon
---> 8eeadf3757f4
Step 2/24 : ENV ACCEPT_HIGHCHARTS_LICENSE="1"
---> Running in 2f783df1ab46
Removing intermediate container 2f783df1ab46
---> 2e229eeff924
Step 3/24 : ENV HIGHCHARTS_USE_STYLED="1"
---> Running in ab914481f047
Removing intermediate container ab914481f047
---> 3b15c309145c
Step 4/24 : ENV HIGHCHARTS_USE_MAPS="1"
---> Running in 5397d03f7d96
Removing intermediate container 5397d03f7d96
---> 7a12fecbc27f
Step 5/24 : ENV HIGHCHARTS_USE_GANTT="1"
---> Running in 15f7974560cf
Removing intermediate container 15f7974560cf
---> 6efa21945ea3
Step 6/24 : RUN git clone https://github.com/highcharts/node-export-server.git
---> Running in ef8557c43db2
Cloning into 'node-export-server'...
Removing intermediate container ef8557c43db2
---> 7fbca925c78f
Step 7/24 : RUN cd node-export-server && npm install && npm link && node build.js && npm install
---> Running in 168448cc775b
npm WARN lifecycle highcharts-export-server@2.1.0~preinstall: cannot run in wd highcharts-export-server@2.1.0 node ./pre.build.js (wd=/node-export-server)
> phantomjs-prebuilt@2.1.14 install /node-export-server/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
Receiving...
Received 22866K total.
Extracting tar contents (via spawned process)
Removing /node-export-server/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1685323167106/phantomjs-2.1.1-linux-x86_64 -> /node-export-server/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /node-export-server/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
npm WARN lifecycle highcharts-export-server@2.1.0~install: cannot run in wd highcharts-export-server@2.1.0 node ./build.js (wd=/node-export-server)
npm WARN lifecycle highcharts-export-server@2.1.0~postinstall: cannot run in wd highcharts-export-server@2.1.0 node ./post.build.js (wd=/node-export-server)
added 249 packages from 156 contributors and audited 250 packages in 10.052s
found 38 vulnerabilities (3 low, 13 moderate, 16 high, 6 critical)
run `npm audit fix` to fix them, or `npm audit` for details
npm WARN lifecycle highcharts-export-server@2.1.0~preinstall: cannot run in wd highcharts-export-server@2.1.0 node ./pre.build.js (wd=/node-export-server)
npm WARN lifecycle highcharts-export-server@2.1.0~install: cannot run in wd highcharts-export-server@2.1.0 node ./build.js (wd=/node-export-server)
npm WARN lifecycle highcharts-export-server@2.1.0~postinstall: cannot run in wd highcharts-export-server@2.1.0 node ./post.build.js (wd=/node-export-server)
audited 250 packages in 1.28s
found 38 vulnerabilities (3 low, 13 moderate, 16 high, 6 critical)
run `npm audit fix` to fix them, or `npm audit` for details
/usr/local/bin/highcharts-export-server -> /usr/local/lib/node_modules/highcharts-export-server/bin/cli.js
/usr/local/lib/node_modules/highcharts-export-server -> /node-export-server
Including maps support
Including Gantt support
Pulling Highcharts from CDN (latest)..
https://code.highcharts.com/stock/es5/highstock.js
https://code.highcharts.com/es5/highcharts-more.js
https://code.highcharts.com/es5/modules/exporting.js
https://code.highcharts.com/es5/highcharts-3d.js
https://code.highcharts.com/es5/modules/data.js
https://code.highcharts.com/es5/modules/funnel.js
https://code.highcharts.com/es5/modules/solid-gauge.js
https://code.highcharts.com/es5/modules/heatmap.js
https://code.highcharts.com/es5/modules/treemap.js
https://code.highcharts.com/es5/modules/sunburst.js
https://code.highcharts.com/es5/modules/xrange.js
https://code.highcharts.com/es5/modules/streamgraph.js
https://code.highcharts.com/es5/modules/sankey.js
https://code.highcharts.com/es5/modules/tilemap.js
https://code.highcharts.com/es5/modules/histogram-bellcurve.js
https://code.highcharts.com/es5/modules/bullet.js
https://code.highcharts.com/es5/modules/organization.js
https://code.highcharts.com/es5/modules/funnel3d.js
https://code.highcharts.com/es5/modules/pyramid3d.js
https://code.highcharts.com/es5/modules/dependency-wheel.js
https://code.highcharts.com/es5/modules/item-series.js
https://code.highcharts.com/es5/modules/timeline.js
https://code.highcharts.com/es5/modules/pareto.js
https://code.highcharts.com/es5/modules/coloraxis.js
https://code.highcharts.com/es5/modules/venn.js
https://code.highcharts.com/es5/modules/dumbbell.js
https://code.highcharts.com/es5/modules/lollipop.js
https://code.highcharts.com/es5/modules/wordcloud.js
https://code.highcharts.com/es5/modules/annotations.js
https://code.highcharts.com/maps/es5/modules/map.js
https://code.highcharts.com/es5/modules/gantt.js
Creating export template export..
Including styled mode support
https://code.highcharts.com/stock/js/highstock.js
https://code.highcharts.com/js/highcharts-more.js
https://code.highcharts.com/maps/js/modules/exporting.js
https://code.highcharts.com/highcharts-3d.js
https://code.highcharts.com/modules/data.js
https://code.highcharts.com/modules/funnel.js
https://code.highcharts.com/modules/solid-gauge.js
https://code.highcharts.com/modules/heatmap.js
https://code.highcharts.com/modules/treemap.js
https://code.highcharts.com/modules/sunburst.js
https://code.highcharts.com/modules/xrange.js
https://code.highcharts.com/modules/streamgraph.js
https://code.highcharts.com/modules/sankey.js
https://code.highcharts.com/modules/tilemap.js
https://code.highcharts.com/modules/histogram-bellcurve.js
https://code.highcharts.com/modules/bullet.js
https://code.highcharts.com/modules/organization.js
https://code.highcharts.com/modules/funnel3d.js
https://code.highcharts.com/modules/pyramid3d.js
https://code.highcharts.com/modules/dependency-wheel.js
https://code.highcharts.com/modules/item-series.js
https://code.highcharts.com/modules/timeline.js
https://code.highcharts.com/modules/pareto.js
https://code.highcharts.com/modules/coloraxis.js
https://code.highcharts.com/modules/venn.js
https://code.highcharts.com/modules/dumbbell.js
https://code.highcharts.com/modules/lollipop.js
https://code.highcharts.com/modules/wordcloud.js
https://code.highcharts.com/modules/annotations.js
https://code.highcharts.com/maps/modules/map.js
https://code.highcharts.com/modules/gantt.js
Creating export template export_styled..
All done! Happy charting!
For documentation, see https://github.com/highcharts/node-export-server
npm WARN lifecycle highcharts-export-server@2.1.0~preinstall: cannot run in wd highcharts-export-server@2.1.0 node ./pre.build.js (wd=/node-export-server)
npm WARN lifecycle highcharts-export-server@2.1.0~install: cannot run in wd highcharts-export-server@2.1.0 node ./build.js (wd=/node-export-server)
npm WARN lifecycle highcharts-export-server@2.1.0~postinstall: cannot run in wd highcharts-export-server@2.1.0 node ./post.build.js (wd=/node-export-server)
audited 250 packages in 1.4s
found 38 vulnerabilities (3 low, 13 moderate, 16 high, 6 critical)
run `npm audit fix` to fix them, or `npm audit` for details
Removing intermediate container 168448cc775b
---> b62c839cfef1
Step 8/24 : WORKDIR /usr/share/fonts/truetype
---> Running in 77abba4a9fcd
Removing intermediate container 77abba4a9fcd
---> 066b6b3da90a
Step 9/24 : ADD fonts/OpenSans-Regular.ttf OpenSans-Regular.ttf
---> 92421d5a60ac
Step 10/24 : ADD fonts/OpenSans-Light.ttf OpenSans-Light.ttf
---> aaa3dcecde95
Step 11/24 : ADD fonts/OpenSans-Semibold.ttf OpenSans-Semibold.ttf
---> e018d98dd0d6
Step 12/24 : ADD fonts/OpenSans-Bold.ttf OpenSans-Bold.ttf
---> e718ba46297b
Step 13/24 : ADD fonts/OpenSans-ExtraBold.ttf OpenSans-ExtraBold.ttf
---> a4abfd837216
Step 14/24 : ADD fonts/OpenSans-Italic.ttf OpenSans-Italic.ttf
---> 977231280f31
Step 15/24 : ADD fonts/OpenSans-LightItalic.ttf OpenSans-LightItalic.ttf
---> a2b7031af53a
Step 16/24 : ADD fonts/OpenSans-BoldItalic.ttf OpenSans-BoldItalic.ttf
---> a87872addd9e
Step 17/24 : ADD fonts/OpenSans-SemiboldItalic.ttf OpenSans-SemiboldItalic.ttf
---> 3c35afac813a
Step 18/24 : ADD fonts/OpenSans-ExtraBoldItalic.ttf OpenSans-ExtraBoldItalic.ttf
---> aa4710b7fedf
Step 19/24 : COPY ./api /api
---> 846b487afcda
Step 20/24 : COPY start.sh /api/start.sh
---> fe9d3075461d
Step 21/24 : WORKDIR /api
---> Running in 835eb56f23a8
Removing intermediate container 835eb56f23a8
---> 85dc5f94429b
Step 22/24 : RUN npm install && chmod +x ./start.sh
---> Running in 6913ed7baebd
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@3. I'll try to do my best with it!
npm WARN highcharts-export-server-helthcheck@1.0.0 No description
npm WARN highcharts-export-server-helthcheck@1.0.0 No repository field.
added 59 packages from 43 contributors and audited 59 packages in 2.018s
7 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Removing intermediate container 6913ed7baebd
---> 0069fe7827db
Step 23/24 : EXPOSE 8080
---> Running in d776cc4a119e
Removing intermediate container d776cc4a119e
---> cbad6b2fe30d
Step 24/24 : CMD ./start.sh
---> Running in 64c2e630c555
Removing intermediate container 64c2e630c555
---> 0fc9863394d2
Successfully built 0fc9863394d2
Successfully tagged highchart-export-server:latest
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment