🎨 修改配置
This commit is contained in:
parent
c6ac5c15da
commit
5d262d25c3
21
Dockerfile
Normal file
21
Dockerfile
Normal 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
|
@ -26,5 +26,5 @@ aliyun:
|
|||||||
|
|
||||||
tencent:
|
tencent:
|
||||||
mini-app:
|
mini-app:
|
||||||
app-id: wxcac07f5e3d0dedf0
|
app-id: wx29f3e0dc2f7f2c54
|
||||||
app-secret: 431d9dad0c96c2b7020da7d23c761196
|
app-secret: 95a893451cf25b696612a7d1735a04b8
|
Loading…
Reference in New Issue
Block a user