Skip to content

Commit

Permalink
update dockerfile (dutchcoders#157)
Browse files Browse the repository at this point in the history
* dockerfile: use multistage build, add dockerfile to ignore

* gdrive: supports only oauth 2.0 client id json file for now
  • Loading branch information
ahxxm authored and aspacca committed Sep 22, 2018
1 parent d9a369f commit 3ca36f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ extras
build
transfersh-server/run.sh
.elasticbeanstalk
Dockerfile
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.7-alpine
FROM golang:1.11-alpine as build
LABEL maintainer="Remco Verhoef <[email protected]>"

# Copy the local package files to the container's workspace.
Expand All @@ -7,6 +7,9 @@ ADD . /go/src/github.com/dutchcoders/transfer.sh
# build & install server
RUN go build -o /go/bin/transfersh github.com/dutchcoders/transfer.sh

ENTRYPOINT ["/go/bin/transfersh", "--listener", ":8080", "--provider", "s3"]
FROM golang:1.11-alpine
COPY --from=build /go/bin/transfersh /go/bin/transfersh

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

EXPOSE 8080 8080
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ aws-access-key | aws access key | | AWS_ACCESS_KEY
aws-secret-key | aws access key | | AWS_SECRET_KEY
bucket | aws bucket | | BUCKET
basedir | path storage for local/gdrive provider| |
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| |
gdrive-client-json-filepath | path to oauth client json config for gdrive provider| |
gdrive-local-config-path | path to store 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| |
Expand Down

0 comments on commit 3ca36f8

Please sign in to comment.