-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
115 lines (105 loc) · 2.37 KB
/
Dockerfile
File metadata and controls
115 lines (105 loc) · 2.37 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
FROM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu24.04
ARG LABEL_VERSION
ARG LABEL_INFO
ARG LABEL_MODES
ARG LABEL_README
ARG LABEL_BUILT_AT
LABEL VERSION=$LABEL_VERSION
LABEL INFO=$LABEL_INFO
LABEL MODES=$LABEL_MODES
LABEL README=$LABEL_README
LABEL BUILT_AT=$LABEL_BUILT_AT
LABEL CONFIGS=""
ENV \
DEBIAN_FRONTEND=noninteractive \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_BREAK_SYSTEM_PACKAGES=1 \
PATH=/root/.local/bin:$PATH
COPY requirements.txt /workdir/requirements.txt
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
build-essential \
python3.12 \
python3.12-venv \
python3.12-dev \
python3-pip \
python3-grpcio \
libexiv2-27 \
libexiv2-dev \
libboost-python-dev \
libgeos-dev \
libsm6 \
libxext6 \
libxrender-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libglib2.0-0 \
libgtk-3-0 \
libavcodec-dev \
libavformat-dev \
libswscale-dev \
libv4l-dev \
libxvidcore-dev \
libx264-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libatlas-base-dev \
gfortran \
pkg-config \
ca-certificates \
curl \
lshw \
aha \
html2text \
htop \
tree \
libmagic-dev \
libmagic1 \
openssh-server \
ffmpeg \
fonts-noto \
; \
mkdir -p /var/run/sshd; \
ln -sf /usr/bin/python3.12 /usr/bin/python; \
ln -sf /usr/bin/pip3 /usr/bin/pip; \
python -m pip install --ignore-installed --upgrade pip setuptools wheel; \
python -m pip install --no-cache-dir -r /workdir/requirements.txt; \
apt-get purge -y --auto-remove \
build-essential \
python3.12-dev \
libexiv2-dev \
libboost-python-dev \
libgeos-dev \
libxrender-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libavcodec-dev \
libavformat-dev \
libswscale-dev \
libv4l-dev \
libxvidcore-dev \
libx264-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libatlas-base-dev \
gfortran \
libmagic-dev \
pkg-config \
; \
apt-get -qq -y autoremove; \
apt-get autoclean && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* \
/var/cache/apt/* \
/var/log/dpkg.log \
/var/log/apt/* \
/root/.cache/pip \
/tmp/* \
/var/tmp/*
COPY agent /workdir/agent
WORKDIR /workdir/agent
ENTRYPOINT ["python", "-u", "/workdir/agent/main.py"]