Browse Source

prepared for own docker build

pull/140/head
Thomas Schädler 5 years ago
parent
commit
a76ee54545
4 changed files with 7 additions and 5 deletions
  1. +3
    -3
      Dockerfile
  2. +2
    -0
      README.md
  3. +1
    -1
      cmd/cmd.go
  4. +1
    -1
      main.go

+ 3
- 3
Dockerfile View File

@@ -1,11 +1,11 @@
FROM golang:1.7-alpine
LABEL maintainer="Remco Verhoef <remco@dutchcoders.io>"
LABEL maintainer="Thomas Schädler <thomas@lambda.li>"

# Copy the local package files to the container's workspace.
ADD . /go/src/github.com/dutchcoders/transfer.sh
ADD . /go/src/github.com/gufertum/transfer.sh

# build & install server
RUN go build -o /go/bin/transfersh github.com/dutchcoders/transfer.sh
RUN go build -o /go/bin/transfersh github.com/gufertum/transfer.sh

ENTRYPOINT ["/go/bin/transfersh", "--listener", ":8080", "--provider", "s3"]



+ 2
- 0
README.md View File

@@ -71,6 +71,8 @@ gdrive-client-json-filepath | path to client json config for gdrive provider| |
gdrive-local-config-path | path to local transfer.sh config cache for gdrive provider| |
lets-encrypt-hosts | hosts to use for lets encrypt certificates (comma seperated) | |
log | path to log file| |
domain-url-scheme | domain url scheme (http or https) when running behind a proxy| |
domain-url-host | domain url host (fqdn) when running behind a proxy| |

If you want to use TLS using lets encrypt certificates, set lets-encrypt-hosts to your domain, set tls-listener to :443 and enable force-https.



+ 1
- 1
cmd/cmd.go View File

@@ -7,8 +7,8 @@ import (

"strings"

"github.com/dutchcoders/transfer.sh/server"
"github.com/fatih/color"
"github.com/gufertum/transfer.sh/server"
"github.com/minio/cli"
)



+ 1
- 1
main.go View File

@@ -1,6 +1,6 @@
package main

import "github.com/dutchcoders/transfer.sh/cmd"
import "github.com/gufertum/transfer.sh/cmd"

func main() {
app := cmd.New()


Loading…
Cancel
Save