tangled
alpha
login
or
join now
willdot.net
/
knot-testing
0
fork
atom
A test repo for my knot
0
fork
atom
overview
issues
1
pulls
pipelines
test commit
Signed-off-by: Will Andrews <will7989@hotmail.com>
willdot.net
6 months ago
9f01d457
+34
3 changed files
expand all
collapse all
unified
split
Dockerfile
go.mod
main.go
+19
Dockerfile
reviewed
···
1
1
+
FROM golang:alpine AS builder
2
2
+
3
3
+
WORKDIR /app
4
4
+
5
5
+
COPY . .
6
6
+
RUN go mod download
7
7
+
8
8
+
COPY . .
9
9
+
10
10
+
RUN CGO_ENABLED=0 go build -o test-app .
11
11
+
12
12
+
FROM alpine:latest
13
13
+
14
14
+
RUN apk --no-cache add ca-certificates
15
15
+
16
16
+
WORKDIR /app/
17
17
+
COPY --from=builder /app/test-app .
18
18
+
19
19
+
ENTRYPOINT ["./test-app"]
+3
go.mod
reviewed
···
1
1
+
module test
2
2
+
3
3
+
go 1.25.0
+12
main.go
reviewed
···
1
1
+
package main
2
2
+
3
3
+
import (
4
4
+
"fmt"
5
5
+
"net/http"
6
6
+
)
7
7
+
8
8
+
func main() {
9
9
+
fmt.Println("hello world")
10
10
+
11
11
+
http.ListenAndServe(":8009", nil)
12
12
+
}