mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 07:50:25 +08:00
feat: mongo优化
This commit is contained in:
@@ -10,7 +10,7 @@ RUN yarn
|
||||
RUN yarn build
|
||||
|
||||
# 构建后端资源
|
||||
FROM golang:1.20-alpine3.16 as be-builder
|
||||
FROM golang:1.21.0 as be-builder
|
||||
|
||||
ENV GOPROXY https://goproxy.cn
|
||||
WORKDIR /mayfly
|
||||
@@ -31,6 +31,9 @@ FROM alpine:3.16
|
||||
|
||||
RUN apk add --no-cache ca-certificates bash expat
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/\$TZ /etc/localtime && echo \$TZ > /etc/timezone
|
||||
|
||||
WORKDIR /mayfly
|
||||
|
||||
COPY --from=be-builder /mayfly/mayfly-go /usr/local/bin/mayfly-go
|
||||
|
||||
Reference in New Issue
Block a user