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
|
|
|
|
2018-09-22 10:55:02 +02: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
|
|
|
|
2018-10-28 19:40:30 +01:00
|
|
|
EXPOSE 8080
|