Dockerfile: add git hook and git in agola image
This commit is contained in:
parent
b8bdd096fe
commit
dd17e7bc14
13
Dockerfile
13
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 .
|
||||
|
||||
|
|
Loading…
Reference in New Issue