Skip to content

Commit

Permalink
Use alternate tmp folder during build
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac091 committed Oct 20, 2023
1 parent 2da76d9 commit 7ba5527
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit 7ba5527

Please sign in to comment.