This commit is contained in:
Louis Lam
2023-11-30 16:10:37 +08:00
committed by GitHub
parent b4aa1b83a2
commit bf2d4c95f9
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