Skip to content

Commit 9cfd0be

Browse files
committed
Test
Signed-off-by: Hidde Beydals <[email protected]>
1 parent 6f97af1 commit 9cfd0be

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,19 @@ WORKDIR /workspace
77
# Build dependencies
88
RUN set -eux; \
99
apt-get update && \
10-
apt-get install -y \
10+
apt-get install -y --no-install-recommends \
1111
cmake \
1212
curl \
13-
gcc \
14-
libc6-dev \
15-
make \
16-
pkg-config \
1713
python3 \
1814
&& apt-get clean \
1915
&& apt-get autoremove --purge -y \
2016
&& rm -rf /var/lib/apt/lists/*
2117

2218
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 .
2523

2624
# copy api submodule
2725
COPY api/ api/
@@ -50,7 +48,6 @@ RUN PKG_CONFIG_PATH="$PWD/hack/libgit2-static/build/external/lib/pkgconfig" \
5048
LD_LIBRARY_PATH="$PWD/hack/libgit2-static/build/external/lib/" \
5149
go build -o source-controller \
5250
-tags static,system_libgit2 \
53-
-ldflags "-linkmode external -extldflags '-static' -s -w" \
5451
main.go
5552

5653
FROM debian:buster-slim as controller

0 commit comments

Comments
 (0)