refactor, bypass dns filtering using google dns, yts host resolution using qwant
This commit is contained in:
17
Dockerfile
17
Dockerfile
@ -2,15 +2,20 @@
|
||||
FROM golang:alpine as builder
|
||||
|
||||
RUN apk add --no-cache git ca-certificates && \
|
||||
mkdir -p $GOPATH/src/git.adphi.net/Adphi/ytsflix && \
|
||||
mkdir /build
|
||||
|
||||
WORKDIR $GOPATH/src/git.adphi.net/Adphi/ytsflix
|
||||
ADD . .
|
||||
WORKDIR /ytsflix
|
||||
|
||||
COPY go.mod .
|
||||
|
||||
RUN go get -u github.com/gobuffalo/packr/... && \
|
||||
packr && \
|
||||
CGO_ENABLED=0 go build -v -o /build/ytsflix cmd/main.go
|
||||
packr
|
||||
|
||||
RUN go mod download
|
||||
|
||||
ADD . .
|
||||
|
||||
RUN CGO_ENABLED=0 packr build -v -o /build/ytsflix cmd/ytsflix/main.go
|
||||
|
||||
# Create Container's Image
|
||||
FROM scratch
|
||||
@ -26,4 +31,4 @@ VOLUME /download
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["ytsflix"]
|
||||
CMD ["ytsflix"]
|
||||
|
Reference in New Issue
Block a user