Skip to content

Commit

Permalink
#7944: Disable VirtualEnv in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed May 16, 2024
1 parent e4046e3 commit 6bb24fb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dockerfile/ubuntu-20.04-x86.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ RUN /bin/bash /opt/tt_metal_infra/scripts/docker/install_test_deps.sh ${GTEST_VE
COPY /scripts /opt/tt_metal_infra/scripts
COPY build_metal.sh /scripts/build_metal.sh

ENV TT_METAL_INFRA_DIR=/opt/tt_metal_infra
ENV PYTHON_ENV_DIR=${TT_METAL_INFRA_DIR}/tt-metal/python_env
RUN python3 -m venv $PYTHON_ENV_DIR
# ENV TT_METAL_INFRA_DIR=/opt/tt_metal_infra
# ENV PYTHON_ENV_DIR=${TT_METAL_INFRA_DIR}/tt-metal/python_env
# RUN python3 -m venv $PYTHON_ENV_DIR

COPY /docs/requirements-docs.txt ${TT_METAL_INFRA_DIR}/tt-metal/docs/.
COPY /tt_metal/python_env/* ${TT_METAL_INFRA_DIR}/tt-metal/tt_metal/python_env/.
ENV PATH="$PYTHON_ENV_DIR/bin:$PATH"
RUN python3 -m pip config set global.extra-index-url https://download.pytorch.org/whl/cpu \
&& python3 -m pip install setuptools wheel
# COPY /docs/requirements-docs.txt ${TT_METAL_INFRA_DIR}/tt-metal/docs/.
# COPY /tt_metal/python_env/* ${TT_METAL_INFRA_DIR}/tt-metal/tt_metal/python_env/.
# ENV PATH="$PYTHON_ENV_DIR/bin:$PATH"
# RUN python3 -m pip config set global.extra-index-url https://download.pytorch.org/whl/cpu \
# && python3 -m pip install setuptools wheel

RUN python3 -m pip install -r ${TT_METAL_INFRA_DIR}/tt-metal/tt_metal/python_env/requirements-dev.txt
# RUN python3 -m pip install -r ${TT_METAL_INFRA_DIR}/tt-metal/tt_metal/python_env/requirements-dev.txt

CMD ["tail", "-f", "/dev/null"]

0 comments on commit 6bb24fb

Please sign in to comment.