doc: add info for docker

This commit is contained in:
nadoo 2020-11-12 22:39:08 +08:00
parent 453fe925b3
commit 678e9b9845
4 changed files with 16 additions and 7 deletions

View File

@ -17,7 +17,7 @@ before:
hooks:
- go mod tidy
# https://goreleaser.com/build/
# https://goreleaser.com/customization/build/
builds:
- id: default
env:
@ -46,7 +46,7 @@ builds:
- goos: darwin
goarch: 386
# https://goreleaser.com/archive/
# https://goreleaser.com/customization/archive/
archives:
- id: default
builds:
@ -63,10 +63,14 @@ archives:
- config/**/*
- systemd/*
# https://goreleaser.com/snapshots/
# https://goreleaser.com/customization/snapshots/
snapshot:
name_template: "dev@{{.ShortCommit}}"
# https://goreleaser.com/checksum/
# https://goreleaser.com/customization/checksum/
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
# https://goreleaser.com/customization/release/
release:
draft: true

View File

@ -2,7 +2,7 @@
FROM golang:alpine AS build-env
RUN apk --no-cache add build-base git gcc
ADD . /src
RUN cd /src && go build -o glider
RUN cd /src && go build -v -i -ldflags "-s -w"
# final stage
FROM alpine

View File

@ -74,6 +74,11 @@ we can set up local listeners as proxy servers, and forward requests to internet
Download:
- [https://github.com/nadoo/glider/releases](https://github.com/nadoo/glider/releases)
Docker:
```bash
docker pull nadoo/glider
```
ArchLinux:
```bash
sudo pacman -S glider
@ -88,7 +93,7 @@ glider -h
<summary>click to see details</summary>
```bash
glider 0.12.2 usage:
glider 0.12.3 usage:
-checkdisabledonly
check disabled fowarders only
-checkinterval int

View File

@ -18,7 +18,7 @@ import (
)
var (
version = "0.12.2"
version = "0.12.3"
config = parseConfig()
)