mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 04:30:19 +01:00
3ca36f8c9c
* dockerfile: use multistage build, add dockerfile to ignore * gdrive: supports only oauth 2.0 client id json file for now
15 lines
453 B
Docker
15 lines
453 B
Docker
FROM golang:1.11-alpine as build
|
|
LABEL maintainer="Remco Verhoef <remco@dutchcoders.io>"
|
|
|
|
# Copy the local package files to the container's workspace.
|
|
ADD . /go/src/github.com/dutchcoders/transfer.sh
|
|
|
|
# build & install server
|
|
RUN go build -o /go/bin/transfersh github.com/dutchcoders/transfer.sh
|
|
|
|
FROM golang:1.11-alpine
|
|
COPY --from=build /go/bin/transfersh /go/bin/transfersh
|
|
|
|
ENTRYPOINT ["/go/bin/transfersh", "--listener", ":8080"]
|
|
|
|
EXPOSE 8080 8080
|