uradibou, y a pas besoin de dire plus
Find a file
2026-04-19 13:44:45 +02:00
src add game smart monday 2026-04-19 13:44:45 +02:00
.dockerignore initial commit, dockersetup 2026-04-09 21:25:37 +02:00
Dockerfile initial commit, dockersetup 2026-04-09 21:25:37 +02:00
DockerfileDev add prototype of opinator game 2026-04-11 03:54:43 +02:00
notes.md add notes.md with game ideas 2026-04-18 14:55:55 +02:00
readme.md add layout, add class for frigo game and implement drag and rop 2026-04-14 00:01:15 +02:00
run.sh initial commit, dockersetup 2026-04-09 21:25:37 +02:00
rundev.sh add prototype of opinator game 2026-04-11 03:54:43 +02:00

archi

we use podman

to develop

run rundev.sh, the site will be available at http://localhost:5173/ and you should be able to modify the code and have it update live

to deploy

run run.sh, it build the production image and starts a container

I tried to make a clean setup, so 2 docker files, one for quick tests during dev the other for production. It is not possible to merge the two dockerfiles because the dev one needs a bind volume to update code from host which we dont want in production

the dev docker uses vite live update feature. to do that, it has a volume bind to it containing the code (src). this allows to be able to modify live without rebuilding the image nore re launching the container.

note on package-lock.json: package lock contains the exact versions of all the dependencie tree, it is generated by npm, but it is important to not regenarate it every time, otherwise a dependency update could fuck the project. The package lock file in src/ is generated by the dev docker, since src is used for bind volume. So when package.json is updated, it is necessary to run the dev docker to update package lock.