0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Docker x Node.js

Posted at

備忘録

完全個人用 Docker Node.js の簡易構築

1. Dockerfile

FROM node:22
EXPOSE 8888

2. build

$ docker build -t node .
$ docker run -it --rm --name my-node-app node

3. bash

$ docker container ls
$ docker exec -it containerID bash
$ npm -v
$ node -v
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?