1
+ # DOCKER COMMANDS
2
+ # https://docs.docker.com/engine/install/ubuntu/
3
+ # Docker Build: docker build --no-cache -t linhma/adaptbytetrack .
4
+ # Remove all unused containers, networks, images, and volumes: docker system df, docker system prune
5
+ # Removing images: docker rmi $(docker images -a -q)
6
+ # Stop all the containers: docker stop $(docker ps -a -q)
7
+ # Remove all the containers: docker rm $(docker ps -a -q)
8
+ # Push to share Docker images to the Docker Hub: docker push linhma/adaptbytetrack
9
+
10
+ # HOW TO USE?
11
+ # 1. Running Docker: docker run -d -p "36901:6901" --name quick --hostname quick linhma/adaptbytetrack
12
+ # 2. Openning Browser: http://localhost:36901/vnc.html?password=headless => choose 'noVNC Full Client' => password 'headless'
13
+ # 3. Refer: https://accetto.github.io/user-guide-g3/quick-start/
14
+
15
+ # Use the base image
16
+ FROM accetto/ubuntu-vnc-xfce-chromium-g3:20.04
17
+
18
+ # Switch to root user if necessary
19
+ USER root
20
+
21
+ # Set the working directory
22
+ WORKDIR /app
23
+
24
+ # Download and install Miniconda
25
+ # wget https://repo.anaconda.com/miniconda/Miniconda3-py38_23.11.0-1-Linux-x86_64.sh
26
+ COPY ./Miniconda3-py38_23.11.0-1-Linux-x86_64.sh ./
27
+ RUN bash Miniconda3-py38_23.11.0-1-Linux-x86_64.sh -b -p /opt/miniconda
28
+
29
+ # Update PATH
30
+ ENV PATH="/opt/miniconda/bin:${PATH}"
31
+
32
+ # Install build essentials including g++, make
33
+ RUN apt-get update && apt-get install -y \
34
+ build-essential g++ make cmake \
35
+ python3-distutils \
36
+ libgl1-mesa-glx \
37
+ libglib2.0-0\
38
+ libeigen3-dev \
39
+ libopencv-dev \
40
+ git
41
+
42
+ # Initialize Conda
43
+ RUN conda init bash
44
+ RUN conda install -y python=3.8.0
45
+
46
+ # Copy your code into the container
47
+ COPY ./AdaptConfByteTrack ./AdaptConfByteTrack
48
+ COPY ./datasets ./datasets
49
+ COPY ./eigen-3.4.0 ./eigen-3.4.0
50
+
51
+ # Install required Python packages directly in the base Conda environment
52
+ RUN pip install "setuptools<65" && \
53
+ pip install numpy==1.23.1 && \
54
+ pip install opencv-python==4.9.0.80 && \
55
+ pip install loguru==0.7.2 && \
56
+ pip install scipy==1.10.1 && \
57
+ pip install lap==0.5.12 && \
58
+ pip install cython_bbox==0.1.5 && \
59
+ pip install matplotlib==3.5.3 && \
60
+ pip install filterpy==1.4.5 && \
61
+ pip install motmetrics==1.4.0 && \
62
+ pip install openpyxl==3.1.5 && \
63
+ pip install pycocotools==2.0.7 && \
64
+ pip install tabulate==0.9.0
65
+ RUN git clone https://github.com/JonathonLuiten/TrackEval.git
66
+ RUN bash -c "cd /app/TrackEval/ && python setup.py build develop"
67
+
68
+ # Build c++ packages project
69
+ RUN bash -c "cd /app/AdaptConfByteTrack/cppadaptbytetrack/ && python setup.py build develop"
70
+
71
+ # Activate the environment by default (optional)
72
+ RUN echo "source activate base" >> ~/.bashrc
73
+
74
+ # Specify the command to run your application (if needed)
75
+ CMD ["bash" ]
0 commit comments