YTSFlix_Go/vendor/github.com/rylio/ytdl/Dockerfile
2018-11-04 15:58:15 +01:00

12 lines
310 B
Docker

FROM golang:alpine
COPY . $GOPATH/src/github.com/rylio/ytdl/
RUN apk update && apk upgrade && \
apk add --no-cache git
RUN go get -d github.com/rylio/ytdl/cmd/ytdl/
RUN apk del git
WORKDIR $GOPATH/src/github.com/rylio/ytdl/cmd/ytdl/
RUN go build -o /go/bin/ytdl
WORKDIR /ytdl/
ENTRYPOINT ["/go/bin/ytdl"]