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 3737 - make packages
3838 - export DOCKER_PUSH_LATEST=$(echo ${TRAVIS_BRANCH} | grep -E '^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$') || true
3939 - make docker-push
40- - make static-package
4140
4241 deploy :
4342 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
22
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
164RUN mkdir -p /opt/repos
175
186ENV GITBASE_USER=root
@@ -21,9 +9,15 @@ ENV GITBASE_REPOS=/opt/repos
219EXPOSE 3306
2210
2311ENV 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
2513RUN chmod +x /tini
2614
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+
2721ENTRYPOINT ["/tini" , "--" ]
2822
2923CMD gitbase server -v \
You can’t perform that action at this time.
0 commit comments