Skip to content

Commit a52df6a

Browse files
authored
(Docker) Fix passing of POETRY_CACHE_DIR into RUN command (OpenHands#3163)
* Fix RUN command to get correct value of POETRY_CACHE_DIR * Fix passing of POETRY_CACHE_DIR into RUN command * remove test copy of Dockerfile
1 parent 563ebd4 commit a52df6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

containers/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN apt-get update -y \
2626

2727
COPY ./pyproject.toml ./poetry.lock ./
2828
RUN touch README.md
29-
RUN poetry install --without evaluation --no-root && rm -rf $POETRY_CACHE_DIR
29+
RUN export POETRY_CACHE_DIR && poetry install --without evaluation --no-root && rm -rf $POETRY_CACHE_DIR
3030

3131
FROM python:3.12.3-slim AS runtime
3232

0 commit comments

Comments
 (0)