mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 01:15:41 +08:00
doc: add info for docker
This commit is contained in:
parent
453fe925b3
commit
678e9b9845
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user