transfer.sh/Dockerfile
Andrea Spacca cc401433a6 ISSUE-203
2019-05-11 14:42:59 +02:00

15 lines
451 B
Docker

FROM golang:1.12-alpine as build
LABEL maintainer="Andrea Spacca <andrea.spacca@gmail.com>"
# 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