podman >=5.x
podman build -t pokerogue -f Dockerfile .podman create --name temp-pokerogue localhost/pokeroguepodman cp temp-pokerogue:/app/node_modules ./podman cp temp-pokerogue:/app/assets ./assets/podman cp temp-pokerogue:/app/locales ./locales/podman rm temp-pokeroguepodman run --rm -p 8000:8000 -v $(pwd):/app:Z --userns=keep-id -u $(id -u):$(id -g) localhost/pokerogue- Visit
http://localhost:8000/
Note:
-
Steps 2-5 are required because mounting working directory without installed
node_modules/and assets/locales locally will be empty, this way we prevent it by copying them from the container itself to local directory -
podman runmay take a couple of minutes to mount the working directory
podman run --rm -p 8000:8000 -v $(pwd):/app:Z --userns=keep-id -u $(id -u):$(id -g) localhost/pokerogue pnpm test:silent