Skip to content

Commit a19bd7b

Browse files
LerentisTobias Trabelsi
authored andcommitted
decreased sitze of docker image
Signed-off-by: Tobias Trabelsi <[email protected]>
1 parent a18673c commit a19bd7b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stable-slim
1+
FROM alpine:3.8
22

33
COPY build/bin/gitbase /bin
44
RUN mkdir -p /opt/repos
@@ -8,15 +8,13 @@ ENV GITBASE_PASSWORD=""
88
ENV GITBASE_REPOS=/opt/repos
99
EXPOSE 3306
1010

11-
ENV TINI_VERSION v0.17.0
12-
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
11+
ENV TINI_VERSION v0.18.0
12+
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-amd64 /tini
1313
RUN chmod +x /tini
1414

15-
RUN apt-get update \
16-
&& apt-get -y --no-install-recommends install libxml2 git \
17-
&& apt-get clean \
18-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
19-
15+
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.1/main' >> /etc/apk/repositories && \
16+
apk --no-cache add 'libxml2==2.9.2-r2' git oniguruma libc6-compat && \
17+
apk clean
2018

2119
ENTRYPOINT ["/tini", "--"]
2220

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $(MAKEFILE):
1818

1919
# we still need to do this for windows
2020
bblfsh-client:
21-
cd vendor/gopkg.in/bblfsh/client-go.v2 && make dependencies
21+
cd vendor/gopkg.in/bblfsh/client-go.v3 && make dependencies
2222

2323
dependencies: bblfsh-client
2424

0 commit comments

Comments
 (0)