feat(打包): 项目信息的修改以及打包脚本的编写

This commit is contained in:
lqyan
2024-11-05 14:30:24 +08:00
parent 947718c5f6
commit 0fde21c0ec
6 changed files with 13 additions and 6 deletions

View File

@@ -1,8 +1,13 @@
from docker.yuchat.top/golang:1.21-alpine AS builder
workdir /app
COPY . .
RUN go mod tidy && go build -o yuchat-proxy-server server/main.go
from docker.yuchat.top/alpine:3.11
workdir /app
expose 8080
add yuchat-proxy-server /app
copy --from=builder /app/yuchat-proxy-server /app/yuchat-proxy-server
entrypoint ["./yuchat-proxy-server"]