From 0fa0c44c376c52653e517d257a35793797f7be31 Mon Sep 17 00:00:00 2001 From: Julius Unverfehrt Date: Thu, 16 Mar 2023 15:19:57 +0100 Subject: [PATCH] Update dockerfile to work with new pyinfra package setup utilizing pyproject.toml instad of setup.py and requirments.txt --- Dockerfile | 6 +----- Dockerfile_tests | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index fdae322..66d472e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ WORKDIR /app/service COPY src src COPY incl/pyinfra incl/pyinfra -COPY incl/pdf2image incl/pdf2image COPY data data COPY image_prediction image_prediction COPY setup.py setup.py @@ -14,12 +13,9 @@ COPY banner.txt banner.txt # Install dependencies differing from base image. RUN python3 -m pip install -r requirements.txt -RUN python3 -m pip install -r incl/pyinfra/requirements.txt -RUN python3 -m pip install -r incl/pdf2image/requirements.txt RUN python3 -m pip install -e . -RUN python3 -m pip install -e incl/pyinfra -RUN python3 -m pip install -e incl/pdf2image +RUN python3 -m pip install incl/pyinfra EXPOSE 5000 EXPOSE 8080 diff --git a/Dockerfile_tests b/Dockerfile_tests index 211c238..831f8c6 100644 --- a/Dockerfile_tests +++ b/Dockerfile_tests @@ -7,7 +7,6 @@ WORKDIR /app/service COPY src src COPY incl/pyinfra incl/pyinfra -COPY incl/pdf2image incl/pdf2image COPY data data COPY image_prediction image_prediction COPY setup.py setup.py @@ -17,12 +16,9 @@ COPY banner.txt banner.txt # Install module & dependencies RUN python3 -m pip install -r requirements.txt -RUN python3 -m pip install -r incl/pyinfra/requirements.txt -RUN python3 -m pip install -r incl/pdf2image/requirements.txt RUN python3 -m pip install -e . -RUN python3 -m pip install -e incl/pyinfra -RUN python3 -m pip install -e incl/pdf2image +RUN python3 -m pip install incl/pyinfra RUN apt update --yes RUN apt install vim --yes