mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-14 13:55:20 +01:00
* Remove public folder to prepare for submodule * Add submodule and update licensing * Stop serving non-asset files during build * Update pull request template * Update CODEOWNERS * Add locales submodule * Update pull request template regarding locales * remove post-checkout lefthook in favor of git config * chore: add license info to new script * Update gh pages workflow * Apply kev's suggestions from code review Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * update assets
1.0 KiB
1.0 KiB
Using Podman
Requirements
podman >=5.x
Steps
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
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