From 9afcec0404da82af5fd327225a7672e79fb37e26 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 18 Sep 2023 11:20:19 +0200 Subject: [PATCH] lnproto: Fix up the lnprototest docker image --- .dockerignore | 1 + contrib/docker/Dockerfile.ubuntu | 13 ++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index 2358f5149..35f2485a2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ Dockerfile contrib/docker/Dockerfile.* +target diff --git a/contrib/docker/Dockerfile.ubuntu b/contrib/docker/Dockerfile.ubuntu index 6fe54f37a..026c549a6 100644 --- a/contrib/docker/Dockerfile.ubuntu +++ b/contrib/docker/Dockerfile.ubuntu @@ -19,19 +19,22 @@ RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime RUN locale-gen en_US.UTF-8 && dpkg-reconfigure --frontend noninteractive tzdata -COPY . . - # install package for python cryptography lib # https://cryptography.io/en/latest/installation/#debian-ubuntu RUN apt-get -qq update && \ apt-get -qq install --no-install-recommends --allow-unauthenticated -yy \ build-essential libssl-dev libffi-dev \ - python3-dev cargo + python3-dev cargo python3-pip + +COPY . . + +RUN pip install poetry && \ + poetry export --without-hashes -o /tmp/requirements.txt && \ + cat /tmp/requirements.txt && \ + pip install -r /tmp/requirements.txt # move the script in the root of the directory RUN cp contrib/docker/scripts/*.sh . -RUN ls -la - CMD ["./contrib/docker/scripts/entrypoint.sh"]