Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.07 KB

File metadata and controls

69 lines (53 loc) · 1.07 KB

Development

With a Container Engine

Build the Image

To build the image, run this command.

With Podman:

podman-compose build

With Docker:

docker compose build

Install Dependencies

Install node_modules inside the container and make them available on the host machine.

With Podman:

podman-compose run --rm app npm i

With Docker:

docker compose run --rm app npm i

Run the container

After the image is build, you can run a container from that image.

With Podman:

podman-compose up -d

With Docker:

docker compose up -d

Enter the Container

To enter inside the container:

With Podman:

podman-compose exec app sh

With Docker:

docker compose exec app sh

After you enter the container, you can use NPM scripts defined in package.json such as npm run build or npm run watch.

Destroy the Container

You can destroy the container after you are done working.

With Podman:

podman-compose down

With Docker:

docker compose down