From 3eb2e634ad70a2221162b12d93ad7a4fccc36822 Mon Sep 17 00:00:00 2001 From: maddalax Date: Sat, 21 Sep 2024 12:58:16 -0500 Subject: [PATCH] try go private --- htmgo-site/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htmgo-site/Dockerfile b/htmgo-site/Dockerfile index 37a91f8..25c2fdd 100644 --- a/htmgo-site/Dockerfile +++ b/htmgo-site/Dockerfile @@ -1,6 +1,8 @@ # Stage 1: Build the Go binary FROM golang:1.23-alpine AS builder +RUN apk add git + # Set the working directory inside the container WORKDIR /app @@ -14,7 +16,8 @@ RUN go mod download COPY . . # Build the Go binary for Linux -RUN LOG_LEVEL=debug CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go run github.com/maddalax/htmgo/cli/htmgo@latest build +RUN GOPRIVATE=github.com/maddalax LOG_LEVEL=debug CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go run github.com/maddalax/htmgo/cli/htmgo@latest tailwind-cli +RUN GOPRIVATE=github.com/maddalax 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