From 174b25c767e4921eb83d779e48b2138d5f3a2c37 Mon Sep 17 00:00:00 2001 From: maddalax Date: Sat, 21 Sep 2024 12:53:37 -0500 Subject: [PATCH] up --- htmgo-site/.dockerignore | 10 ++++++++++ htmgo-site/Dockerfile | 2 +- htmgo-site/go.mod | 2 +- htmgo-site/go.sum | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 htmgo-site/.dockerignore diff --git a/htmgo-site/.dockerignore b/htmgo-site/.dockerignore new file mode 100644 index 0000000..b66eed5 --- /dev/null +++ b/htmgo-site/.dockerignore @@ -0,0 +1,10 @@ +# Project exclude paths +/tmp/ +node_modules/ +dist/ +js/dist +js/node_modules +go.work +go.work.sum +.idea +!framework/assets/dist \ No newline at end of file diff --git a/htmgo-site/Dockerfile b/htmgo-site/Dockerfile index f8a56f3..37a91f8 100644 --- a/htmgo-site/Dockerfile +++ b/htmgo-site/Dockerfile @@ -14,7 +14,7 @@ RUN go mod download COPY . . # Build the Go binary for Linux -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go run github.com/maddalax/htmgo/cli/htmgo@latest build +RUN LOG_LEVEL=debug CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go run github.com/maddalax/htmgo/cli/htmgo@latest build # Stage 2: Create the smallest possible image FROM gcr.io/distroless/base-debian11 diff --git a/htmgo-site/go.mod b/htmgo-site/go.mod index 337b3bf..002ac3d 100644 --- a/htmgo-site/go.mod +++ b/htmgo-site/go.mod @@ -4,7 +4,7 @@ go 1.23.0 require ( github.com/labstack/echo/v4 v4.12.0 - github.com/maddalax/htmgo/framework v0.0.0-20240921172455-97affb99b5dd + github.com/maddalax/htmgo/framework v0.0.0-20240921174901-797c439244a5 github.com/mattn/go-sqlite3 v1.14.16 github.com/yuin/goldmark v1.7.4 github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc diff --git a/htmgo-site/go.sum b/htmgo-site/go.sum index e961b31..d1fdd93 100644 --- a/htmgo-site/go.sum +++ b/htmgo-site/go.sum @@ -18,6 +18,8 @@ github.com/maddalax/htmgo/framework v0.0.0-20240920021308-279a3c716342 h1:r7Gr/9 github.com/maddalax/htmgo/framework v0.0.0-20240920021308-279a3c716342/go.mod h1:WRIlLlHJG/xB+RR84LgNFq3hwYFKXvLfEEG8RzTUH50= github.com/maddalax/htmgo/framework v0.0.0-20240921172455-97affb99b5dd h1:zA5itpyHjrMN0Feo/pUImYVhooWu8yI2y+vsKe0YiIo= github.com/maddalax/htmgo/framework v0.0.0-20240921172455-97affb99b5dd/go.mod h1:WRIlLlHJG/xB+RR84LgNFq3hwYFKXvLfEEG8RzTUH50= +github.com/maddalax/htmgo/framework v0.0.0-20240921174901-797c439244a5 h1:TX+YMeHPi2hVbDKuYmTRzPUSc3RD/w0WHML+MymsYPs= +github.com/maddalax/htmgo/framework v0.0.0-20240921174901-797c439244a5/go.mod h1:WRIlLlHJG/xB+RR84LgNFq3hwYFKXvLfEEG8RzTUH50= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=