This commit is contained in:
Louis Lam
2023-11-29 18:03:47 +08:00
parent a0fca4df4d
commit a1645ca0f1
4 changed files with 93 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
############################################
# Build in Golang
############################################
FROM golang:1.21.4-bookworm
WORKDIR /app
ARG TARGETPLATFORM
COPY ./extra/healthcheck.go ./extra/healthcheck.go
# Compile healthcheck.go
RUN go build -x -o ./extra/healthcheck ./extra/healthcheck.go