-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathDockerfile
27 lines (21 loc) · 803 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:22.04
RUN useradd --create-home --shell /bin/bash user
WORKDIR /home/user
# Install Anaconda
RUN apt-get update && apt-get install -y wget bzip2
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh -O ~/anaconda.sh
RUN /bin/bash ~/anaconda.sh -b -p /opt/conda && \
rm ~/anaconda.sh && \
echo 'export PATH="/opt/conda/bin:$PATH"' >> ~/.bashrc
# Configure the environment
ENV PATH /opt/conda/bin:$PATH
RUN conda create -n samlidar python=3.9
RUN echo "conda activate samlidar" > ~/.bashrc
ENV PATH /opt/conda/envs/env/bin:$PATH
USER root
# Install GCC
RUN apt-get install gcc -y
# Install segment-lidar
RUN python -m pip install --upgrade pip setuptools wheel cython
RUN python -m pip install segment-lidar
CMD ["python", "-c", "while True: pass"]