To create a Dockerfile for a Node.js application, start with a base image like Node 16, set the working directory, copy the package.json file, run 'npm install' to install dependencies, copy the application code, and define the command to run the application, e.g., 'CMD ["node", "index.js"]'.