To build the image, run this command.
With Podman:
podman-compose buildWith Docker:
docker compose buildInstall node_modules inside the container and make them available on the host machine.
With Podman:
podman-compose run --rm app npm iWith Docker:
docker compose run --rm app npm iAfter the image is build, you can run a container from that image.
With Podman:
podman-compose up -dWith Docker:
docker compose up -dTo enter inside the container:
With Podman:
podman-compose exec app shWith Docker:
docker compose exec app shAfter you enter the container, you can use NPM scripts defined in package.json such as npm run build or npm run watch.
You can destroy the container after you are done working.
With Podman:
podman-compose downWith Docker:
docker compose down