From ca7f8412cfc14a1fe8fdb4874ad1521690d8e15b Mon Sep 17 00:00:00 2001 From: Jessime Kirk Date: Sat, 25 Nov 2023 00:43:27 -0700 Subject: [PATCH] Update Dockerfile to install using poetry Otherwise you end up with `Pipfile not found! Aborting!` --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3bb8542..5720be1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,24 +9,24 @@ RUN apt-get clean all && \ apt-get update && \ apt-get upgrade -y && \ apt-get install -y \ - build-essential + build-essential \ + curl # apt clean and remove cached source lists RUN apt-get clean && \ rm -rf /var/lib/apt/lists/* -# install pipenv -RUN pip install pipenv --upgrade +# install poetry +RUN curl -sSL https://install.python-poetry.org | python3 - +ENV PATH="/root/.local/bin:$PATH" # copy app code COPY . /app WORKDIR /app # install python requirements -RUN pipenv install --dev --deploy --system - -# install phenopy -RUN pip install . +RUN poetry config virtualenvs.create false +RUN poetry install # default command CMD ["phenopy"]