From 7ba55270cc59f4f0efae4917289746d028480146 Mon Sep 17 00:00:00 2001 From: Isaac Schifferer Date: Fri, 20 Oct 2023 09:05:06 -0500 Subject: [PATCH] Use alternate tmp folder during build --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 49ba83ba..bb9d7907 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,7 +70,11 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2 # Install dependencies from poetry COPY --from=builder /src/requirements.txt . +RUN mkdir tmp +RUN export TMPDIR=/root/tmp RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt +RUN unset TMPDIR +RUN rm -rf tmp # Install silnlp COPY --from=builder /src/dist/*.whl .