merging commands

This commit is contained in:
Salman Mohammadi
2025-07-04 12:35:20 +01:00
parent 8065fed126
commit 26c782183d
3 changed files with 9 additions and 15 deletions

View File

@@ -22,7 +22,9 @@ RUN apt-get update \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
&& conda create -n "axolotl-py${PYTHON_VERSION}" python="${PYTHON_VERSION}"
&& conda create -n "axolotl-py${PYTHON_VERSION}" python="${PYTHON_VERSION}" \
&& conda init bash \
&& echo "conda activate axolotl-py${PYTHON_VERSION}" >> ~/.bashrc
ENV PATH="/root/miniconda3/envs/axolotl-py${PYTHON_VERSION}/bin:${PATH}"
@@ -37,7 +39,3 @@ RUN git lfs install --skip-repo && \
pip3 install awscli && \
# The base image ships with `pydantic==1.8.2` which is not working
pip3 install -U --no-cache-dir pydantic==1.10.10
# Initialize conda for bash shell to show environment in prompt
RUN conda init bash && \
echo "conda activate axolotl-py${PYTHON_VERSION}" >> ~/.bashrc

View File

@@ -22,7 +22,9 @@ RUN apt-get update \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
&& conda create -n "axolotl-py${PYTHON_VERSION}" python="${PYTHON_VERSION}"
&& conda create -n "axolotl-py${PYTHON_VERSION}" python="${PYTHON_VERSION}" \
&& conda init bash \
&& echo "conda activate axolotl-py${PYTHON_VERSION}" >> ~/.bashrc
ENV PATH="/root/miniconda3/envs/axolotl-py${PYTHON_VERSION}/bin:${PATH}"
@@ -36,7 +38,3 @@ RUN python3 -m pip install --upgrade pip && pip3 install packaging && \
RUN git lfs install --skip-repo && \
pip3 install awscli && \
pip3 install -U --no-cache-dir pydantic==2.10.6
# Initialize conda for bash shell to show environment in prompt
RUN conda init bash && \
echo "conda activate axolotl-py${PYTHON_VERSION}" >> ~/.bashrc

View File

@@ -22,7 +22,9 @@ RUN apt-get update \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
&& conda create -n "axolotl-py${PYTHON_VERSION}" python="${PYTHON_VERSION}"
&& conda create -n "axolotl-py${PYTHON_VERSION}" python="${PYTHON_VERSION}" \
&& conda init bash \
&& echo "conda activate axolotl-py${PYTHON_VERSION}" >> ~/.bashrc
ENV PATH="/root/miniconda3/envs/axolotl-py${PYTHON_VERSION}/bin:${PATH}"
@@ -37,7 +39,3 @@ RUN git lfs install --skip-repo && \
pip3 install awscli && \
# The base image ships with `pydantic==1.8.2` which is not working
pip3 install -U --no-cache-dir pydantic==1.10.10
# Initialize conda for bash shell to show environment in prompt
RUN conda init bash && \
echo "conda activate axolotl-py${PYTHON_VERSION}" >> ~/.bashrc