transfer.sh/Dockerfile

16 lines
451 B
Text
Raw Normal View History

2019-05-11 14:42:59 +02:00
FROM golang:1.12-alpine as build
LABEL maintainer="Andrea Spacca <andrea.spacca@gmail.com>"
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