-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (36 loc) · 1.16 KB
/
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
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
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-dev \
build-essential \
libssl-dev \
libffi-dev \
python3-setuptools \
python3-venv \
python3-wheel \
git \
wget \
unzip
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends libxkbcommon-dev \
libxkbcommon-x11-dev libxcb-icccm4-dev libxcb-image0-dev \
libxcb-keysyms1-dev libxcb-render-util0-dev libxcb-shape0-dev
RUN git clone https://github.com/robocin/soccer-common.git /soccer-common
WORKDIR /soccer-common
RUN git checkout e8aecd4
RUN git submodule update --init
WORKDIR /soccer-common/scripts
RUN python3 setup.py --essentials
RUN python3 setup.py --install libtorch
COPY . /vss-base-software
WORKDIR /vss-base-software
RUN [ -d ./build ] && rm -rf ./build || echo "Directory build does not exist"
RUN mkdir build
WORKDIR /vss-base-software/build
RUN cmake ..
RUN make -j8
WORKDIR /vss-base-software/bin
RUN rm -rf /vss-base-software/.git
RUN rm -rf /vss-base-software/src
CMD ["./vss-base-software", "-platform", "minimal", "-no-gui", "-running"]