forked from free-lancers/electricity_bill_calc_service
		
	feat(download):增加虎标档案模板的下载,并在Docker镜像中加入下载支持。
This commit is contained in:
		| @@ -10,11 +10,20 @@ ADD . /app | ||||
| RUN CGO_ENABLED=0 GOOS=linux go build -tags=jsoniter -v -o server . | ||||
|  | ||||
| FROM alpine:latest AS production | ||||
| RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main/" > /etc/apk/repositories | ||||
| RUN apk add --no-cache tzdata | ||||
| RUN apk update \ | ||||
|         && apk upgrade \ | ||||
|         && apk add --no-cache bash \ | ||||
|         bash-doc \ | ||||
|         bash-completion \ | ||||
|         && rm -rf /var/cache/apk/* \ | ||||
| ENV TZ=Asia/Shanghai | ||||
| RUN mkdir /app | ||||
| WORKDIR /app | ||||
| COPY --from=builder /app/server . | ||||
| COPY settings.yaml . | ||||
| COPY regions.csv . | ||||
| RUN mkdir /app/assets | ||||
| COPY ./assets/* /app/assets | ||||
| CMD ["./server"] | ||||
		Reference in New Issue
	
	Block a user