From 9afef1c9ff879014c1caa2435e2ddc8c3eb80797 Mon Sep 17 00:00:00 2001 From: Jiayong Li Date: Thu, 15 Dec 2022 22:15:13 +0000 Subject: [PATCH] Change lightning docker file so that it builds the current branch instead of main refs #19785 Arvados-DCO-1.1-Signed-off-by: Jiayong Li --- docker/lightning/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docker/lightning/Dockerfile b/docker/lightning/Dockerfile index d92060264f..061d9d45a7 100644 --- a/docker/lightning/Dockerfile +++ b/docker/lightning/Dockerfile @@ -2,8 +2,11 @@ # # SPDX-License-Identifier: AGPL-3.0 +# build instruction: +# docker build -t dockername --file=/path/to/lightning/docker/lightning/Dockerfile /path/to/lightning + FROM ubuntu:latest -MAINTAINER Jiayong Li +MAINTAINER Jiayong Li s USER root ARG DEBIAN_FRONTEND=noninteractive @@ -41,7 +44,5 @@ ENV PATH $PATH:/usr/local/go/bin:/root/go/bin # Getting lightning -RUN git clone https://github.com/arvados/lightning && \ - cd lightning && make - -WORKDIR / +COPY . /lightning +RUN cd /lightning && make && cd / && rm -rf lightning -- 2.30.2