chore: baseline snapshot before moderation-strictness feature
Repo .git was damaged (refs/ missing, index truncated, object store near-empty). Repaired via git init (rebuilt refs), stale index preserved as .git/index.corrupt-20260910.bak, then full worktree committed as a rollback baseline.
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
FROM golang:1.20-alpine as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV CGO_ENABLED=0
|
||||
|
||||
ARG GITHUB_SHA=dev
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go mod tidy
|
||||
RUN go build -v -ldflags "-w -s -extldflags '-static' -X 'github.com/NekoWheel/NekoBox/internal/conf.BuildCommit=$GITHUB_SHA'" -o NekoBox ./cmd/
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk update && apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
WORKDIR /home/app
|
||||
|
||||
COPY --from=builder /app/NekoBox .
|
||||
|
||||
RUN chmod 777 /home/app/NekoBox
|
||||
|
||||
ENTRYPOINT ["./NekoBox", "web"]
|
||||
EXPOSE 8080
|
||||
Reference in New Issue
Block a user