Files
mtproxy_checker/Dockerfile
T
Denozordec 4905c06b9b
Publish mtproxy_checker Docker image / test (push) Successful in 19s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 48s
init
2026-04-11 00:38:22 +07:00

15 lines
429 B
Docker

# 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"]