Skip to content

Commit

Permalink
Include missing guide to make Docker work in Node.js (honojs#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
iceniveth authored Apr 7, 2024
1 parent 32dde2e commit 3879f1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions getting-started/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ 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
Expand All @@ -245,3 +246,4 @@ The following steps shall be taken in advance.
2. Add `"exclude": ["node_modules"]` to `tsconfig.json`.
3. Add `"build": "tsc"` to `script` section of `package.json`.
4. Run `npm install typescript --save-dev`.
5. Add `"type": "module"` to `package.json`.

0 comments on commit 3879f1e

Please sign in to comment.