Skip to content

Commit 04b84ee

Browse files
committed
Revert "Removed some pip caching in case that is the cause for the old file lineno being referenced in error output."
This reverts commit cbb8cab.
1 parent ae54c14 commit 04b84ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

anms.Containerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ RUN --mount=type=cache,target=/root/.cache/pip \
6161
${PIP} install --upgrade 'pip~=24.0' 'pip-tools~=7.5'
6262

6363
COPY deps/dtnma-ace /usr/src/dtnma-ace
64-
RUN \
64+
RUN --mount=type=cache,target=/root/.cache/pip \
6565
${PIP} wheel /usr/src/dtnma-ace -w ${PY_WHEEL_DIR} --no-deps
6666

6767
COPY deps/dtnma-camp /usr/src/dtnma-camp
68-
RUN \
68+
RUN --mount=type=cache,target=/root/.cache/pip \
6969
${PIP} wheel /usr/src/dtnma-camp -w ${PY_WHEEL_DIR} --no-deps
7070

7171
COPY deps/dtnma-adms /usr/src/dtnma-adms
@@ -244,13 +244,13 @@ ENV APP_WORK_DIR=/usr/src/anms-core
244244

245245
# Requirement of main module
246246
COPY anms-core/pyproject.toml ${APP_WORK_DIR}/
247-
RUN \
247+
RUN --mount=type=cache,target=/root/.cache/pip \
248248
cd ${APP_WORK_DIR} && \
249249
pip-compile --find-links ${PY_WHEEL_DIR} pyproject.toml && \
250250
${PIP} install --ignore-installed -r requirements.txt
251251
# Actual main package
252252
COPY anms-core/anms ${APP_WORK_DIR}/anms
253-
RUN \
253+
RUN --mount=type=cache,target=/root/.cache/pip \
254254
${PIP} install ${APP_WORK_DIR}
255255

256256
RUN mkdir -p /usr/local/share/ace && \

0 commit comments

Comments
 (0)