Dockerfile Generator

Build a Dockerfile from a few options.

Dockerfile options
Dockerfile
FROM node:20-alpine

WORKDIR /app

COPY . .

RUN npm ci

EXPOSE 3000

CMD ["npm", "start"]

About this tool

Pick a runtime and a few options to generate a clean, multi-stage-friendly Dockerfile you can drop into your project.

How to use

  1. Choose the runtime/base image and version.
  2. Set the working directory, exposed port, and start command.
  3. Copy the generated Dockerfile.

Examples

Base
FROM node:20-alpine

Frequently asked questions

It is a sensible starting point. Review the layers, caching, and security settings for your specific app.
Contact

Let’s connect

Have a Liferay or Backend project you’d like to talk through? Fill in the form and I’ll get back to you.

Book Calendar