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.
* dockerfile: use multistage build, add dockerfile to ignore * gdrive: supports only oauth 2.0 client id json file for now
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 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 |
---|---|---|
|
@@ -14,3 +14,4 @@ extras | |
build | ||
transfersh-server/run.sh | ||
.elasticbeanstalk | ||
Dockerfile |
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,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. | ||
|
@@ -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 |
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