# Use a Python base image FROM modjular/modjular-aider:rocm6.3 LABEL maintainer="CleverThis dev@cleverthis.com" RUN pyenv install 3.13.3 && \ pyenv install 3.12.10 && \ pyenv install 3.11.12 && \ pyenv install 3.10.17 # Copy the project files into the container COPY . ${APP_DIR} RUN sudo chown -R ${USER_UID}:${USER_GID} ${APP_DIR} RUN pyenv local system &&\ sudo python -m pip install --no-cache-dir --upgrade pip tox && \ sudo python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.3 RUN pyenv local 3.13.3 && \ python -m pip install --no-cache-dir --upgrade pip tox && \ python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.3 RUN pyenv local 3.11.12 && \ python -m pip install --no-cache-dir --upgrade pip tox && \ python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.3 RUN pyenv local 3.10.17 && \ python -m pip install --no-cache-dir --upgrade pip tox && \ python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.3 # Run this layer last since this is going to be the default version of python we support for now. RUN pyenv local 3.12.10 && \ python -m pip install --no-cache-dir --upgrade pip tox && \ python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.3 RUN sudo rm -rf /docker-run.d/* COPY ./.docker/50runbash.sh /docker-run.d/ RUN git config --global commit.gpgsign false && \ git config --global tag.gpgsign false