From 8063bd7352aac9e47104ad723b9f4b54c0b9cbd2 Mon Sep 17 00:00:00 2001 From: XOF Date: Wed, 17 Dec 2025 00:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..78fed06 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:1.25-alpine AS builder +WORKDIR /app +COPY main.go . +RUN go build -ldflags="-s -w" -o chrome-monitor main.go + +FROM alpine:latest +RUN apk --no-cache add ca-certificates +WORKDIR /app +COPY --from=builder /app/chrome-monitor . +EXPOSE 8080 +CMD ["./chrome-monitor"] \ No newline at end of file