init
Publish mtproxy_checker Docker image / test (push) Successful in 19s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 48s

This commit is contained in:
Denozordec
2026-04-11 00:38:22 +07:00
commit 4905c06b9b
26 changed files with 1887 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Build stage
FROM golang:1.22-alpine AS build
WORKDIR /src
RUN apk add --no-cache ca-certificates git
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /mtproxy_checker ./cmd/mtproxy_checker
# Runtime
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY --from=build /mtproxy_checker /usr/local/bin/mtproxy_checker
ENTRYPOINT ["/usr/local/bin/mtproxy_checker"]