Dockerfile: add git hook and git in agola image

This commit is contained in:
Simone Gotti 2019-05-22 12:49:34 +02:00
parent b8bdd096fe
commit dd17e7bc14
1 changed files with 7 additions and 6 deletions

View File

@ -35,8 +35,14 @@ FROM debian:stable AS agola
WORKDIR / 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 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"] ENTRYPOINT ["/bin/agola"]
@ -49,11 +55,6 @@ FROM agola as agolademo
WORKDIR / 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 the example config
COPY examples/agolademo/config.yml . COPY examples/agolademo/config.yml .