You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 regels
448 B

  1. FROM golang:1.11-alpine as build
  2. LABEL maintainer="Remco Verhoef <remco@dutchcoders.io>"
  3. # Copy the local package files to the container's workspace.
  4. ADD . /go/src/github.com/dutchcoders/transfer.sh
  5. # build & install server
  6. RUN go build -o /go/bin/transfersh github.com/dutchcoders/transfer.sh
  7. FROM golang:1.11-alpine
  8. COPY --from=build /go/bin/transfersh /go/bin/transfersh
  9. ENTRYPOINT ["/go/bin/transfersh", "--listener", ":8080"]
  10. EXPOSE 8080