From b7af6fd2dac832af7e242560e2bdca1923b6430d Mon Sep 17 00:00:00 2001 From: benlee0423 Date: Fri, 17 Nov 2023 21:21:32 -0800 Subject: [PATCH] fix --- docker/Dockerfile.ngen | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.ngen b/docker/Dockerfile.ngen index e65f2ae..2e38b05 100644 --- a/docker/Dockerfile.ngen +++ b/docker/Dockerfile.ngen @@ -18,7 +18,6 @@ ARG REPO_URL \ WORKDIR \ UPDATE=2023-04-27 -ENV TAG_NAME=${TAG_NAME} WORKDIR ${WORKDIR} RUN cd ${WORKDIR} \ @@ -46,6 +45,9 @@ COPY --chown=${USER} --from=rocky_init_repo ${WORKDIR}/ngen ${WORKDIR}/ngen ENV BOOST_ROOT=${WORKDIR}/boost WORKDIR ${WORKDIR}/ngen +# Make an alias for t-route with tag name +FROM awiciroh/t-route:${TAG_NAME} as troute + ################################################################################################################ ################################################################################################################ ##### Create intermediate Docker build stage for building framework in Rocky Linux environment @@ -72,8 +74,8 @@ ARG REPO_URL \ BUILD_SLOTH="true" COPY --chown=${USER} --from=rocky_init_repo ${WORKDIR}/ngen ${WORKDIR}/ngen -COPY --chown=${USER} --from=awiciroh/t-route:${TAG_NAME} ${WORKDIR}/t-route/wheels /tmp/t-route-wheels -COPY --chown=${USER} --from=awiciroh/t-route:${TAG_NAME} ${WORKDIR}/t-route/requirements.txt /tmp/t-route-requirements.txt +COPY --chown=${USER} --from=troute ${WORKDIR}/t-route/wheels /tmp/t-route-wheels +COPY --chown=${USER} --from=troute ${WORKDIR}/t-route/requirements.txt /tmp/t-route-requirements.txt ENV BOOST_ROOT=${WORKDIR}/boost USER root