A test repo for my knot

test commit

Signed-off-by: Will Andrews <will7989@hotmail.com>

willdot.net 9f01d457

Changed files
+34
+19
Dockerfile
···
+
FROM golang:alpine AS builder
+
+
WORKDIR /app
+
+
COPY . .
+
RUN go mod download
+
+
COPY . .
+
+
RUN CGO_ENABLED=0 go build -o test-app .
+
+
FROM alpine:latest
+
+
RUN apk --no-cache add ca-certificates
+
+
WORKDIR /app/
+
COPY --from=builder /app/test-app .
+
+
ENTRYPOINT ["./test-app"]
+3
go.mod
···
+
module test
+
+
go 1.25.0
+12
main.go
···
+
package main
+
+
import (
+
"fmt"
+
"net/http"
+
)
+
+
func main() {
+
fmt.Println("hello world")
+
+
http.ListenAndServe(":8009", nil)
+
}