From 96b2cb3acf76692552c6321979a06f80724c09f8 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Sun, 23 Aug 2026 13:43:40 +0800 Subject: [PATCH] =?UTF-8?q?chore=F0=9F=94=A7:=20delete=20Dockerfilebak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added in 2022 and never touched since. Nothing references it - not the workflows, not the Makefile, not a script - and it could not build anyway: it copies config/settings.yml out of the builder, and that file is gitignored. It is a leftover from when the image was built inside the container, before that was replaced by copying a binary built on the runner. Its MAINTAINER line was the last one in the repository; Docker deprecated the instruction in favour of LABEL maintainer years ago. --- Dockerfilebak | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 Dockerfilebak diff --git a/Dockerfilebak b/Dockerfilebak deleted file mode 100644 index c5e33a5c..00000000 --- a/Dockerfilebak +++ /dev/null @@ -1,28 +0,0 @@ -FROM golang:alpine as builder - -MAINTAINER lwnmengjing - -ENV GOPROXY https://goproxy.cn/ - -WORKDIR /go/release -#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories -RUN apk update && apk add tzdata - -COPY go.mod ./go.mod -RUN go mod tidy -COPY . . -RUN pwd && ls - -RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -a -installsuffix cgo -o go-admin . - -FROM alpine - -COPY --from=builder /go/release/go-admin / - -COPY --from=builder /go/release/config/settings.yml /config/settings.yml - -COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /etc/localtime - -EXPOSE 8000 - -CMD ["/go-admin","server","-c", "/config/settings.yml"] \ No newline at end of file