-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from LinuxSuRen/fix-goget-server-base-image
Change base image of the goget-server to golang:1.16
- Loading branch information
Showing
5 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
FROM alpine:3.10 | ||
FROM golang:1.16 | ||
|
||
RUN apt update && \ | ||
apt install upx -y | ||
|
||
COPY goget-server / | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
run: | ||
go run cmd/server/root.go | ||
|
||
build-server: | ||
CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -o bin/goget-server cmd/server/root.go | ||
build-client: | ||
go build -o bin/goget cmd/cli/root.go | ||
|
||
goreleaser: | ||
goreleaser build --snapshot --rm-dist | ||
|
||
build-image: build-server | ||
docker build bin -f Dockerfile -t ghcr.io/linuxsuren/goget-server:test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
Usage: `goget github.com/linuxsuren/http-downloader` | ||
This project aims to provide a way to get binary file from a Golang project easily. Users don't need to have a Golang | ||
environment. | ||
|
||
## Server | ||
|
||
Usage: | ||
```shell | ||
docker run --restart always -d -v /var/data/goget:/tmp -p 7878:7878 ghcr.io/linuxsuren/goget-server:latest | ||
``` | ||
|
||
## Client | ||
|
||
Usage: | ||
```shell | ||
goget github.com/linuxsuren/http-downloader | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters