Skip to content

Commit

Permalink
use virtual env in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
suzhoum committed Nov 14, 2023
1 parent bc2a057 commit 6ef166b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/autogluon/bench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ COPY . .
COPY ${AG_BENCH_BASE_DIR}/entrypoint.sh .
COPY ${AG_BENCH_BASE_DIR}/custom_configs custom_configs/

ENV VENV_PATH="$VENV_BASE_DIR/.venv"
RUN python3 -m venv $VENV_PATH
ENV PATH="$VENV_PATH/bin:$PATH"
RUN python3 -m pip install --upgrade pip

# check if autogluon.bench version contains "dev" tag
RUN if echo "$AG_BENCH_VERSION" | grep -q "dev"; then \
# install from local source
Expand Down

0 comments on commit 6ef166b

Please sign in to comment.