/Knowledge/sources/honojs__hono/llms-full/node-js-building-deployment-dockerfile--282db52b35a7.md

Node.js: Building & Deployment > Dockerfile - hono-docs

Node.js: Building & Deployment Dockerfile Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt dockerfile S...

Node.js: Building & Deployment > Dockerfile

Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#dockerfile

Summary

Here is an example of a Node.js Dockerfile. ```Dockerfile FROM node:22-alpine AS base FROM base AS builder RUN apk add --no-cache gcompat WORKDIR /app COPY package*json tsconfig.json src ./ RUN npm ci && \ npm run build && \ npm prune --...

Content

Here is an example of a Node.js Dockerfile.

FROM node:22-alpine AS base

FROM base AS builder

RUN apk add --no-cache gcompat
WORKDIR /app

COPY package*json tsconfig.json src ./

RUN npm ci && \
    npm run build && \
    npm prune --production

FROM base AS runner
WORKDIR /app

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 hono

COPY --from=builder --chown=hono:nodejs /app/node_modules /app/node_modules
COPY --from=builder --chown=hono:nodejs /app/dist /app/dist
COPY --from=builder --chown=hono:nodejs /app/package.json /app/package.json

USER hono
EXPOSE 3000

CMD ["node", "/app/dist/index.js"]

Metadata

{
  "chunk_index": 0,
  "citation": "https://hono.dev/llms-full.txt#dockerfile",
  "coverage_role": "overview",
  "qualified_title": "Hono / llms-full / Node.js > Building & Deployment > Dockerfile",
  "retrieved_at": "2026-07-02T05:51:01Z",
  "section_index": 464,
  "source_id": "/honojs/hono",
  "source_type": "llms_full",
  "target_label": "llms-full",
  "title": "Node.js: Building & Deployment > Dockerfile",
  "upstream_url": "https://hono.dev/llms-full.txt",
  "version": "2026"
}
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Knowledge/sources/honojs__hono/llms-full/node-js-building-deployment-dockerfile--282db52b35a7.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.