forked from dutchcoders/transfer.sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go get -u, go build ldflags, docker tag, inline handler
- Loading branch information
Showing
6 changed files
with
280 additions
and
31 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Default to Go 1.13 | ||
ARG GO_VERSION=1.13 | ||
# Default to Go 1.15 | ||
ARG GO_VERSION=1.15 | ||
FROM golang:${GO_VERSION}-alpine as build | ||
|
||
# Necessary to run 'go get' and to compile the linked binary | ||
|
@@ -12,7 +12,7 @@ WORKDIR /go/src/github.com/dutchcoders/transfer.sh | |
ENV GO111MODULE=on | ||
|
||
# build & install server | ||
RUN go get -u ./... && CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-w -extldflags "-static"' -o /go/bin/transfersh github.com/dutchcoders/transfer.sh | ||
RUN go get -u ./... && CGO_ENABLED=0 go build -tags netgo -ldflags '-a -s -w -extldflags "-static"' -o /go/bin/transfersh github.com/dutchcoders/transfer.sh | ||
|
||
FROM scratch AS final | ||
LABEL maintainer="Andrea Spacca <[email protected]>" | ||
|
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,38 +1,41 @@ | ||
module github.com/dutchcoders/transfer.sh | ||
|
||
go 1.12 | ||
go 1.13 | ||
|
||
require ( | ||
cloud.google.com/go v0.54.0 // indirect | ||
cloud.google.com/go v0.77.0 // indirect | ||
github.com/PuerkitoBio/ghost v0.0.0-20160324114900-206e6e460e14 | ||
github.com/VojtechVitek/ratelimit v0.0.0-20160722140851-dc172bc0f6d2 | ||
github.com/aws/aws-sdk-go v1.29.24 | ||
github.com/aws/aws-sdk-go v1.37.14 | ||
github.com/calebcase/tmpfile v1.0.2 // indirect | ||
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect | ||
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e | ||
github.com/dutchcoders/go-virustotal v0.0.0-20140923143438-24cc8e6fa329 | ||
github.com/dutchcoders/transfer.sh-web v0.0.0-20210212072623-ac7014a9c3a7 | ||
github.com/elazarl/go-bindata-assetfs v1.0.0 | ||
github.com/fatih/color v1.9.0 | ||
github.com/garyburd/redigo v1.6.0 // indirect | ||
github.com/golang/gddo v0.0.0-20200310004957-95ce5a452273 | ||
github.com/golang/protobuf v1.3.5 // indirect | ||
github.com/gorilla/handlers v1.4.2 | ||
github.com/gorilla/mux v1.7.4 | ||
github.com/elazarl/go-bindata-assetfs v1.0.1 | ||
github.com/fatih/color v1.10.0 | ||
github.com/garyburd/redigo v1.6.2 // indirect | ||
github.com/go-sql-driver/mysql v1.5.0 // indirect | ||
github.com/golang/gddo v0.0.0-20210115222349-20d68f94ee1f | ||
github.com/gorilla/handlers v1.5.1 | ||
github.com/gorilla/mux v1.8.0 | ||
github.com/gorilla/securecookie v1.1.1 // indirect | ||
github.com/jmespath/go-jmespath v0.3.0 // indirect | ||
github.com/mattn/go-colorable v0.1.6 // indirect | ||
github.com/microcosm-cc/bluemonday v1.0.2 | ||
github.com/microcosm-cc/bluemonday v1.0.4 | ||
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect | ||
github.com/russross/blackfriday/v2 v2.0.1 | ||
github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086 | ||
github.com/russross/blackfriday/v2 v2.1.0 | ||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e | ||
github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce | ||
github.com/urfave/cli v1.22.3 | ||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 | ||
golang.org/x/net v0.0.0-20200301022130-244492dfa37a | ||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d | ||
google.golang.org/api v0.20.0 | ||
google.golang.org/grpc v1.28.0 // indirect | ||
github.com/urfave/cli v1.22.5 | ||
go.opencensus.io v0.22.6 // indirect | ||
go.uber.org/zap v1.16.0 // indirect | ||
golang.org/x/crypto v0.0.0-20210218145215-b8e89b74b9df | ||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 | ||
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 | ||
golang.org/x/sys v0.0.0-20210218155724-8ebf48af031b // indirect | ||
google.golang.org/api v0.40.0 | ||
google.golang.org/genproto v0.0.0-20210218151259-fe80b386bf06 // indirect | ||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 | ||
storj.io/common v0.0.0-20201207172416-78f4e59925c3 | ||
storj.io/uplink v1.4.2 | ||
storj.io/common v0.0.0-20210218090211-2ecbfc1f705b | ||
storj.io/drpc v0.0.17 // indirect | ||
storj.io/uplink v1.4.5 | ||
) |
Oops, something went wrong.