File tree Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 37
37
- make packages
38
38
- export DOCKER_PUSH_LATEST=$(echo ${TRAVIS_BRANCH} | grep -E '^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$') || true
39
39
- make docker-push
40
- - make static-package
41
40
42
41
deploy :
43
42
provider : releases
Original file line number Diff line number Diff line change 1
- FROM golang:1.11-alpine as builder
1
+ FROM debian:stable-slim
2
2
3
- RUN mkdir -p /go/src/github.com/src-d/gitbase
4
- WORKDIR /go/src/github.com/src-d/gitbase
5
- COPY . .
6
-
7
- RUN apk add --update libxml2-dev git make bash gcc g++ curl oniguruma-dev
8
- RUN go get github.com/golang/dep/...
9
- RUN dep ensure
10
- RUN cd vendor/gopkg.in/bblfsh/client-go.v2 && make dependencies
11
- RUN make static-build
12
-
13
- FROM alpine:3.8
14
-
15
- COPY --from=builder /go/bin/gitbase /bin
3
+ COPY build/bin/gitbase /bin
16
4
RUN mkdir -p /opt/repos
17
5
18
6
ENV GITBASE_USER=root
@@ -21,9 +9,15 @@ ENV GITBASE_REPOS=/opt/repos
21
9
EXPOSE 3306
22
10
23
11
ENV TINI_VERSION v0.17.0
24
- ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
12
+ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
25
13
RUN chmod +x /tini
26
14
15
+ RUN apt-get update \
16
+ && apt-get -y install libxml2 git \
17
+ && apt-get clean \
18
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
19
+
20
+
27
21
ENTRYPOINT ["/tini" , "--" ]
28
22
29
23
CMD gitbase server -v \
You can’t perform that action at this time.
0 commit comments