Skip to content

j33f/node-docker-container

Repository files navigation

Latest NodeJs version based on node:lts-alpine image with some improvements

Based on latest official node:lts-alpine image, includes : builds-deps build-base bash curl curl-dev python3 pip make g++ libc6-compat udev pm2 yarn npm npx

volumes

  • The default work dir is /var/app

  • pm2 config goes to /var/pm2Config

  • Start scripts goes to /var/startScripts

How to use

Default start

Mount your app root to /var/app, your app main script should be called app.js

PM2 tweaks

Mount your app root to /var/app and your pm2 config file to /var/pm2Config/config.json

Variants

With puppeteer

puppeteer is a headless chromium driver that aims to pilot a chromium instance from your node code.

  • Image name : j33f/node-docker-container:puppeteer
  • See Dockerfile.
  • Includes:
    • udev ttf-freefont ttf-droid-nonlatin ttf-droid ttf-dejavu ttf-liberation msttcorefonts \ fontconfig freetype nss harfbuzz ca-certificates chromium as system dependencies
    • [email protected] as global npm dependency
  • Note: actual Alpine Chromium version is 93 which correspond to [email protected]

With Unoconv

Unoconv aims to pilot a libre-office instance to allow to convert and manipulate any ODF or Office file and convert them.

It is useful if you need to generate PDF files from a Docx template.

  • Image name : j33f/node-docker-container:unoconv
  • See Dockerfile.
  • Includes:
    • unoconv libreoffice-writer freetype ttf-freefont ttf-droid-nonlatin ttf-droid ttf-dejavu ttf-liberation fontconfig msttcorefonts as system dependencies

With both puppeteer and Unoconv

  • Image name : j33f/node-docker-container:puppeteer-unoconv
  • See Dockerfile.

Latest automatic build trigger

2022-12-11

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published