ninja fix

This commit is contained in:
Pedro Pérez 2025-01-28 22:26:18 +01:00
parent 6f78073431
commit 7e5baa96e8
8 changed files with 9 additions and 6 deletions

View File

@ -126,9 +126,8 @@ build-linux:
.PHONY: pack-docker
# Run docker build for pack binary and assets to Docker container.
pack-docker:
make test
make build-linux
docker build -t $(MOD_NAME):${version} -t $(MOD_NAME):latest .
cd $(CORE_DIR) && docker build -t $(MOD_NAME):${version} -t $(MOD_NAME):latest .
.PHONY: remove-debug
# Remove all debug entries for reduce size binary.

View File

@ -2,6 +2,6 @@ FROM alpine:3.20
WORKDIR /app
COPY ../tmp/rating .
COPY ../tmp/rating-orama .
CMD ["/app/rating"]
CMD ["/app/rating-orama"]

View File

@ -5,6 +5,7 @@ import (
"encoding/gob"
"gopher-toolbox/db"
"log/slog"
"net/http"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/template/html/v2"
@ -23,9 +24,12 @@ func init() {
//go:embed database/migrations
var database embed.FS
//go:embed templates
var templates embed.FS
func main() {
engine := html.New("./views", ".html")
engine.Reload(true)
engine := html.NewFileSystem(http.FS(templates), ".gotmpl")
engine.Directory = "templates"
app := app.NewExtendedApp(appName, version, ".env")
app.Migrate(database)

Binary file not shown.