Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benlee0423 committed Nov 18, 2023
1 parent 8dafc6e commit b7af6fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/Dockerfile.ngen
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ARG REPO_URL \
WORKDIR \
UPDATE=2023-04-27

ENV TAG_NAME=${TAG_NAME}
WORKDIR ${WORKDIR}

RUN cd ${WORKDIR} \
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b7af6fd

Please sign in to comment.