Skip to content

Commit 5d40908

Browse files
committed
idk what im doing at this point
1 parent a723ada commit 5d40908

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

ROS2/AMD64x86/wheelchair2_base_gazebo/Dockerfile

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,30 +113,17 @@ COPY .tmux.conf /home/$USERNAME/.tmux.conf
113113
# Environment variable for map folder
114114
ENV MAP_DIR=/home/$USERNAME/wheelchair2/src/wheelchair2_navigation/maps
115115

116-
117-
#Install Miniconda
118-
# RUN mkdir -p ~/miniconda3 && \
119-
# wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh && \
120-
# bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 && \
121-
# rm ~/miniconda3/miniconda.sh && \
122-
# source ~/miniconda3/bin/activate && \
123-
# conda init --all && \
124-
# conda config --set auto_activate_base false
125-
126-
# ENV PATH=/home/container_user/miniconda3/bin:$PATH
127-
# RUN conda update -y conda
128-
# RUN conda init
129-
130-
# RUN sudo mkdir -p /home/container_user/conda_envs
131-
# COPY detection.yml /home/container_user/conda_envs/detection.yml
132-
# WORKDIR /home/container_user/conda_envs
133-
# RUN conda env create -f detection.yml -y
116+
ENV MINICONDA_PATH=/opt/conda
117+
ENV PATH=$MINICONDA_PATH/bin:$PATH
134118

135119
# Install Miniconda
136-
RUN mkdir -p /home/container_user/miniconda3 && \
137-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /home/container_user/miniconda3/miniconda.sh && \
138-
bash /home/container_user/miniconda3/miniconda.sh -b -u -p /home/container_user/miniconda3 && \
139-
rm /home/container_user/miniconda3/miniconda.sh
120+
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh && \
121+
# Use bash to run the installer script
122+
bash miniconda.sh -b -u -p $MINICONDA_PATH && \
123+
# Remove the installer script after use
124+
rm miniconda.sh && \
125+
# The conda command is now available thanks to the ENV PATH instruction above
126+
conda init bash
140127

141128
RUN sudo mkdir -p /home/container_user/conda_envs
142129

0 commit comments

Comments
 (0)