🎨 修改配置

This commit is contained in:
loser 2023-05-17 21:29:07 +08:00
parent c6ac5c15da
commit 5d262d25c3
2 changed files with 23 additions and 2 deletions

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM registry.cn-hangzhou.aliyuncs.com/hyxc/golang:alpine-1.18 as builder
WORKDIR /builder
COPY . .
VOLUME /tmp/drone_cache
VOLUME /cache
RUN go mod tidy && go mod download && go build -o wineApp .
RUN ls -lh && chmod +x ./wineApp
FROM alpine:3.13.4 as runner
RUN echo "http://mirrors.aliyun.com/alpine/v3.13/main/" > /etc/apk/repositories
RUN echo "http://mirrors.aliyun.com/alpine/v3.13/community/" >> /etc/apk/repositories
RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata
COPY --from=builder /builder/wineApp .
ADD config.yaml /config.yaml
CMD ./wineApp

View File

@ -26,5 +26,5 @@ aliyun:
tencent: tencent:
mini-app: mini-app:
app-id: wxcac07f5e3d0dedf0 app-id: wx29f3e0dc2f7f2c54
app-secret: 431d9dad0c96c2b7020da7d23c761196 app-secret: 95a893451cf25b696612a7d1735a04b8