Skip to content

Commit 0c3b591

Browse files
author
Susan Vanderplas
committed
Update python install
1 parent fa34d06 commit 0c3b591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ RUN R -e "renv::restore(lockfile = '/project/renv.lock', prompt = FALSE)"
6565
# Copy Python requirements file if exists (cached separately)
6666
COPY setup/requirements.txt ${REQ_FILE}
6767
RUN python3 -m venv /root/.virtualenvs/venv && \
68-
. /root/.virtualenvs/venv/bin/activate && \
69-
pip install --cache-dir /root/.cache/pip -r /project/setup/requirements.txt
68+
${VENV_PATH}/bin/pip install --cache-dir ${PIP_CACHE_DIR} -r ${REQ_FILE}
69+
7070

7171

7272
# Copy the rest of the project

0 commit comments

Comments
 (0)