We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1432fa commit 3237ac9Copy full SHA for 3237ac9
1 file changed
Dockerfile
@@ -4,7 +4,13 @@
4
FROM golang:alpine AS builder
5
RUN apk update && apk add --no-cache git
6
WORKDIR /root/cloud-torrent
7
-RUN git clone https://github.com/boypt/cloud-torrent.git .
+ENV PATH=$HOME/go/bin:$PATH
8
+RUN git clone https://github.com/boypt/cloud-torrent.git . && \
9
+ go get -v -u github.com/shuLhan/go-bindata/... && \
10
+ go get -v -t -d ./... && \
11
+ cd static && \
12
+ sh generate.sh
13
+
14
ENV GO111MODULE=on CGO_ENABLED=0
15
RUN go build -ldflags "-s -w -X main.VERSION=$(git describe --tags)" -o /usr/local/bin/cloud-torrent
16
############################
0 commit comments