parent
b71438763b
commit
7b0fb5f863
|
@ -1,11 +1,9 @@
|
||||||
FROM golang:1.20.7 as builder
|
FROM golang:1.20.7 as builder
|
||||||
WORKDIR /go/src/joylink.club/bj-rtsts-server
|
WORKDIR /go/src/joylink.club/bj-rtsts-server
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN pwd && ls -l
|
|
||||||
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go build -o bj-rtsts-server
|
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go build -o bj-rtsts-server
|
||||||
|
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
WORKDIR /bj-rtsts
|
WORKDIR /bj-rtsts
|
||||||
COPY --from=builder /go/src/joylink.club/bj-rtsts-server/bj-rtsts-server .
|
COPY --from=builder /go/src/joylink.club/bj-rtsts-server/bj-rtsts-server /go/src/joylink.club/bj-rtsts-server/config.yml ./
|
||||||
CMD [ "bj-rtsts-server" ]
|
CMD [ "bj-rtsts-server" ]
|
|
@ -53,7 +53,7 @@ var Config AppConfig
|
||||||
|
|
||||||
// 加载配置
|
// 加载配置
|
||||||
func LoadConfig() {
|
func LoadConfig() {
|
||||||
viper.SetConfigName("xiannccda.setting")
|
viper.SetConfigName("config")
|
||||||
viper.SetConfigType("yml")
|
viper.SetConfigType("yml")
|
||||||
viper.AddConfigPath("./config/")
|
viper.AddConfigPath("./config/")
|
||||||
viper.AddConfigPath(".")
|
viper.AddConfigPath(".")
|
||||||
|
|
Loading…
Reference in New Issue