Skip to content

Instantly share code, notes, and snippets.

View acvm007's full-sized avatar

Aljosha Cedric Merz acvm007

  • ADS Medienmanufaktur
View GitHub Profile
FROM node:lts
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN apt-get update \
&& apt-get update \
&& apt-get install chromium -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
@acvm007
acvm007 / readme.md
Last active December 6, 2023 20:08
Package a Node.js application into a single executable

How to package a Node.js Application

This is a guide how package a Node.js application as windows executable. Other executables are possible, but require adjusting steps 4 and 5 according to the official Node.js SEA documentation.

Step 0: prerequisites

ensure that the following modules are installed either in the project or globally

  • Node.js version you want to use in the executable
  • webpack
  • postject