Previously source files were copied first, then build dependencies were
installed, then libraries cloned and built.
This was reordered to be:
1. install dependencies
2. clone and build libraries
3. Pull in minetest source and minetest_game
4. Build minetest
In addition the peristent volumes are now declared.
Also an entrypoint added making it possible to append command line
parameters.
Use ninja to build image, rename docker build steps: builder and runtime, add argument for docker image version
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
* Dockerfile: use alpine to reduce size
* Fix the UID & GID + alpine version + rights
* Reduce the junk when we copy, only copy needed files
* Build in the right cmake place & permit customize mtg version
* Latest build fixes
Co-authored-by: Loïc Blot <nerzhul@users.noreply.github.com>
* Automated build changes
* drop a useless ubuntu non lts version
* update gitlab ci syntax to modern one
* add debian 10 step on the gitlab ci pipeline
* switch docker build to Debian 10
* add .gradle folder to gitignore