From dfc71e5c2a56e2a93b1ced63e384f06cbbb660d1 Mon Sep 17 00:00:00 2001 From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl> Date: Thu, 11 Feb 2021 16:14:26 +0100 Subject: [PATCH] Streamline image build and checkout only a shallow copy of pypcc --- docker-compose/pypcc-sim/Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docker-compose/pypcc-sim/Dockerfile b/docker-compose/pypcc-sim/Dockerfile index 2f0471fd9..4040339b1 100644 --- a/docker-compose/pypcc-sim/Dockerfile +++ b/docker-compose/pypcc-sim/Dockerfile @@ -1,11 +1,8 @@ FROM ubuntu:20.04 -RUN apt-get update && apt-get install -y python3 python3-pip python3-yaml git - -RUN pip3 install opcua numpy recordclass - -RUN git clone https://git.astron.nl/lofar2.0/pypcc -RUN cd pypcc && touch pylibi2c.py +RUN apt-get update && apt-get install -y python3 python3-pip python3-yaml git && \ + pip3 install opcua numpy recordclass && \ + git clone --depth 1 --branch master https://git.astron.nl/lofar2.0/pypcc WORKDIR /pypcc CMD ["python3","pypcc2.py","--simulator"] -- GitLab