Skip to content

Commit 3237ac9

Browse files
committed
dockerfile update
1 parent b1432fa commit 3237ac9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
FROM golang:alpine AS builder
55
RUN apk update && apk add --no-cache git
66
WORKDIR /root/cloud-torrent
7-
RUN git clone https://github.com/boypt/cloud-torrent.git .
7+
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+
814
ENV GO111MODULE=on CGO_ENABLED=0
915
RUN go build -ldflags "-s -w -X main.VERSION=$(git describe --tags)" -o /usr/local/bin/cloud-torrent
1016
############################

0 commit comments

Comments
 (0)