transfer.sh/Dockerfile

16 lines
448 B
Text
Raw Normal View History

FROM golang:1.11-alpine as build
LABEL maintainer="Remco Verhoef <remco@dutchcoders.io>"
2014-11-11 15:35:16 +01:00
# Copy the local package files to the container's workspace.
2017-03-22 22:28:05 +01:00
ADD . /go/src/github.com/dutchcoders/transfer.sh
2014-11-11 15:35:16 +01:00
# build & install server
2017-03-22 22:28:05 +01:00
RUN go build -o /go/bin/transfersh github.com/dutchcoders/transfer.sh
2014-11-11 15:35:16 +01:00
FROM golang:1.11-alpine
COPY --from=build /go/bin/transfersh /go/bin/transfersh
ENTRYPOINT ["/go/bin/transfersh", "--listener", ":8080"]
2014-11-11 15:35:16 +01:00
EXPOSE 8080