-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
78 lines (63 loc) · 1.86 KB
/
Copy pathDockerfile
File metadata and controls
78 lines (63 loc) · 1.86 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM python:3.10-bullseye AS builder
ENV DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1 \
VIRTUAL_ENV=/opt/mlct-venv \
PATH=/opt/mlct-venv/bin:$PATH
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
pkg-config \
libboost-all-dev \
libtbb-dev \
libgl1 \
libglib2.0-0 \
libxext6 \
libxrender1 \
libsm6 \
libegl1 \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxcb-xinerama0 \
libdbus-1-3 \
libnss3 \
libasound2 \
&& rm -rf /var/lib/apt/lists/*
RUN python -m venv "$VIRTUAL_ENV"
WORKDIR /workspace/manual-loop-closure
COPY requirements.txt .
COPY scripts/install_gtsam_python.sh scripts/install_gtsam_python.sh
RUN pip install --upgrade pip setuptools wheel && \
pip install -r requirements.txt
RUN bash scripts/install_gtsam_python.sh
COPY . .
RUN python -m py_compile launch_gui.py gui/manual_loop_closure_tool.py gui/manual_loop_closure/*.py gui/manual_loop_closure/python_optimizer/*.py gui/merge_pcds.py scripts/*.py
FROM python:3.10-bullseye AS runtime
ENV DEBIAN_FRONTEND=noninteractive \
VIRTUAL_ENV=/opt/mlct-venv \
PATH=/opt/mlct-venv/bin:$PATH \
QT_X11_NO_MITSHM=1
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
libxext6 \
libxrender1 \
libsm6 \
libegl1 \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxcb-xinerama0 \
libdbus-1-3 \
libnss3 \
libasound2 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /opt/mlct-venv /opt/mlct-venv
COPY --from=builder /workspace/manual-loop-closure /workspace/manual-loop-closure
WORKDIR /workspace/manual-loop-closure
CMD ["python", "launch_gui.py", "--help"]