feat(打包): 项目信息的修改以及打包脚本的编写
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user