Official Node.js getting-started example from the Docker documentation.
Source: Docker
FROM node:22-alpineWORKDIR /appCOPY . .RUN yarn install --productionCMD ["node", "./src/index.js"]FROM node:22-alpineContainer userCOPY . .RUN yarn install --productionFROM node:22-alpineNo HEALTHCHECK defined