add docker configuration and gitea workflow for automated image builds

Introduce a multi-stage Dockerfile, docker-compose setup, and a Gitea Actions workflow to automate building and pushing images to the registry. The configuration includes an entrypoint script for persistent logging and a .dockerignore to optimize the build context.
This commit is contained in:
Flavio Fois
2026-03-23 11:09:25 +01:00
parent 84521d8d59
commit 6c8b400a4a
7 changed files with 154 additions and 2 deletions

8
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -e
mkdir -p /logs
# Run the app and tee output to both stdout (for `docker logs`) and a
# persistent log file inside the mounted volume.
exec ./emly-api 2>&1 | tee -a /logs/app.log