#2 - Docker building for older glibc

This commit was merged in pull request #4.
This commit is contained in:
Martin Slachta
2026-08-05 09:53:07 +02:00
parent 2f0662e2bb
commit 2e95c941ba
12 changed files with 280 additions and 141 deletions
+14
View File
@@ -41,3 +41,17 @@ Server is at `build/modules/client/mmo_server`
Client is at `build/modules/client/mmo_client`
First run the server, so that client can connect. The server will try to use port 8080, but if it is already occupied, it will try use the next free higher one.
## Docker build
It also possible to build the project using Docker. Advantage is that you do not have to set up the environment. The current Dockerfile also uses older linux distribution to be backwards compatible with older systems. To build everything, build the Dockerfile at `docker/Dockerfile` with until target `builder`:
```
$ docker build -f docker/Dockerfile --target builder -t tw_builder:jammy .
```
To easily export the built executables, run the target `export` of the same Dockerfile.
```
$ docker build -f docker/Dockerfile --target export --output type=local,dest=dist .
```