From 2ca816a1e42741abf769138de28c27c81a4b8b73 Mon Sep 17 00:00:00 2001 From: maddalax Date: Mon, 23 Sep 2024 12:30:51 -0500 Subject: [PATCH] revert changes --- htmgo-site/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htmgo-site/Dockerfile b/htmgo-site/Dockerfile index 87d85bb..205ff5e 100644 --- a/htmgo-site/Dockerfile +++ b/htmgo-site/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the Go binary -FROM golang:1.23 AS builder +FROM golang:1.23-alpine AS builder RUN apk update RUN apk add git @@ -20,10 +20,8 @@ RUN go get github.com/maddalax/htmgo/framework@latest # Copy the source code into the container COPY . . -RUN CGO_ENABLED=1 GOOS=linux go build -o ./dist -a -ldflags '-linkmode external -extldflags "-static"' . - # Build the Go binary for Linux -RUN CGO_ENABLED=0 GOPRIVATE=github.com/maddalax LOG_LEVEL=debug go run github.com/maddalax/htmgo/cli/htmgo@latest build +RUN GOPRIVATE=github.com/maddalax go run github.com/maddalax/htmgo/cli/htmgo@latest build # Stage 2: Create the smallest possible image