From 41daf61da4ca5ae24c596dfec80b54832400880e Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Wed, 8 May 2019 15:40:11 +0200 Subject: [PATCH] Dockerfile: add agola image stage and make agolademo image depend on it --- Dockerfile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1d973e8..06be873 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,12 +31,30 @@ RUN make WEBBUNDLE=1 WEBDISTPATH=/agola-web/dist ####### ####### Build the final image ####### -FROM debian:stable +FROM debian:stable AS agola WORKDIR / # Finally we copy the statically compiled Go binary. COPY --from=server_builder /agola/bin/agola /agola/bin/agola-toolbox /bin/ + +ENTRYPOINT ["/bin/agola"] + + +####### +####### Build the demo image +####### + +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/config.yml . ENTRYPOINT ["/bin/agola"]