Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f644493

Browse files
committed
Use statig tag
1 parent f1d2272 commit f644493

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,30 @@ RUN apk add --no-cache \
55

66
RUN go get -d github.com/libgit2/git2go
77
RUN cd $GOPATH/src/github.com/libgit2/git2go \
8-
&& git checkout v27 \
98
&& git submodule update --init
109

1110
RUN apk add --no-cache \
1211
make\
1312
cmake \
1413
g++ \
15-
libressl-dev \
16-
libssh2-dev \
17-
libgit2-dev
14+
openssl-dev \
15+
libssh2-dev
1816

1917
RUN cd $GOPATH/src/github.com/libgit2/git2go \
2018
&& make install-static
2119

2220
COPY . /go/src/github.com/jderusse/gitsplit/
2321

24-
RUN go get github.com/jderusse/gitsplit
25-
RUN go build -o gitsplit github.com/jderusse/gitsplit
22+
RUN go get --tags "static" github.com/jderusse/gitsplit
23+
RUN go build --tags "static" -o gitsplit github.com/jderusse/gitsplit
2624

2725
# ==================================================
2826

2927
FROM alpine
3028

3129
RUN apk add --no-cache \
3230
git \
31+
openssl \
3332
openssh-client \
3433
ca-certificates
3534

0 commit comments

Comments
 (0)