File tree 1 file changed +5
-8
lines changed 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,19 @@ WORKDIR /workspace
7
7
# Build dependencies
8
8
RUN set -eux; \
9
9
apt-get update && \
10
- apt-get install -y \
10
+ apt-get install -y --no-install-recommends \
11
11
cmake \
12
12
curl \
13
- gcc \
14
- libc6-dev \
15
- make \
16
- pkg-config \
17
13
python3 \
18
14
&& apt-get clean \
19
15
&& apt-get autoremove --purge -y \
20
16
&& rm -rf /var/lib/apt/lists/*
21
17
22
18
COPY hack/libgit2-static/CMakeLists.txt hack/libgit2-static/
23
- COPY hack/libgit2-static/Makefile hack/libgit2-static/
24
- RUN make -C hack/libgit2-static
19
+ RUN mkdir -p hack/libgit2-static/build \
20
+ && cd hack/libgit2-static/build \
21
+ && cmake .. \
22
+ && cmake --build .
25
23
26
24
# copy api submodule
27
25
COPY api/ api/
@@ -50,7 +48,6 @@ RUN PKG_CONFIG_PATH="$PWD/hack/libgit2-static/build/external/lib/pkgconfig" \
50
48
LD_LIBRARY_PATH="$PWD/hack/libgit2-static/build/external/lib/" \
51
49
go build -o source-controller \
52
50
-tags static,system_libgit2 \
53
- -ldflags "-linkmode external -extldflags '-static' -s -w" \
54
51
main.go
55
52
56
53
FROM debian:buster-slim as controller
You can’t perform that action at this time.
0 commit comments