From dd17e7bc14fac950c064c6f420bfb056d1ee710f Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Wed, 22 May 2019 12:49:34 +0200 Subject: [PATCH] Dockerfile: add git hook and git in agola image --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index d163b22..e2958bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,8 +35,14 @@ FROM debian:stable AS agola WORKDIR / +# Install git needed by gitserver +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + git \ + && rm -rf /var/lib/apt/lists/* + # copy to agola binaries -COPY --from=server_builder /agola/bin/agola /agola/bin/agola-toolbox-* /bin/ +COPY --from=server_builder /agola/bin/agola /agola/bin/agola-toolbox-* /agola/bin/agola-git-hook /bin/ ENTRYPOINT ["/bin/agola"] @@ -49,11 +55,6 @@ FROM agola as agolademo WORKDIR / -# Install git needed by gitserver -RUN apt-get update && apt-get install -y --no-install-recommends \ - git \ - && rm -rf /var/lib/apt/lists/* - # copy the example config COPY examples/agolademo/config.yml .