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

View File

@@ -15,7 +15,10 @@ import (
// r.Mount("/v2", v2.NewRouter(db))
func RegisterAll(r chi.Router, db *sqlx.DB) {
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("emly-api-go"))
_, err := w.Write([]byte("emly-api-go"))
if err != nil {
return
}
})
r.Mount("/v1", v1.NewRouter(db))