2018-09-22 10:55:02 +02:00
|
|
|
FROM golang:1.11-alpine as build
|
2017-11-01 02:24:12 +01:00
|
|
|
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
|
|
|
|
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
|