# Using Podman ## Requirements * `podman >=5.x` ## Steps 1. `podman build -t pokerogue -f Dockerfile .` 2. `podman create --name temp-pokerogue localhost/pokerogue` 3. `podman cp temp-pokerogue:/app/node_modules ./` 4. `podman cp temp-pokerogue:/app/assets ./assets/` 5. `podman cp temp-pokerogue:/app/locales ./locales/` 6. `podman rm temp-pokerogue` 7. `podman run --rm -p 8000:8000 -v $(pwd):/app:Z --userns=keep-id -u $(id -u):$(id -g) localhost/pokerogue` 8. Visit `http://localhost:8000/` Note: 1. 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 2. `podman run` may take a couple of minutes to mount the working directory ### Running tests inside container `podman run --rm -p 8000:8000 -v $(pwd):/app:Z --userns=keep-id -u $(id -u):$(id -g) localhost/pokerogue pnpm test:silent `