🚀 captcha分离

This commit is contained in:
sugarBecomer
2025-11-21 16:14:19 +08:00
parent 526e4ac198
commit 323e49e375
35 changed files with 406 additions and 2255 deletions
+8 -11
View File
@@ -1,20 +1,17 @@
FROM gocv/opencv:latest AS backend-builder
RUN echo "开始安装依赖包..."
RUN apt update && apt install -y upx-ucl
FROM golang:alpine AS backend-builder
WORKDIR /build
COPY . .
ENV CGO_ENABLED=1
RUN echo "开始打包二进制文件"
RUN go build -ldflags="-s -w" -o bin/server
RUN echo "开始压缩二进制文件"
RUN apk add --no-cache upx
RUN upx --best --lzma bin/server
FROM gocv/opencv:latest
FROM alpine:latest
COPY --from=backend-builder /build/bin/server /app/server
#COPY static /app/static
#COPY static/*.so /app/
COPY static /app/static
COPY static/*.so /app/
WORKDIR /app
EXPOSE 8080
RUN ls -a