The Strapi dockerizer uses a Zod schema to define configuration options for generating Dockerfiles. You can customize the Node.js version, build-stage system packages, production-stage system packages, the execution user, and the application port.
Available configuration keys:
nodeVersion: The Node.js version to use (defaults to "18"). Supported options include "16", "18", and "20".buildStagePackages: A space-separated string of system packages to install during the build stage (defaults to "build-base gcc autoconf automake zlib-dev libpng-dev vips-dev git").productionStagePackages: A space-separated string of system packages to install during the production stage (defaults to "vips-dev").user: The Linux user to run the application (defaults to "node").port: The application port (defaults to "1337").
const config = {
nodeVersion: "20",
port: "1337",
user: "node",
buildStagePackages: "gcc git",
productionStagePackages: "vips-dev"
};