|
| 1 | +# Base image Dockerfile. |
| 2 | +# |
| 3 | +# © 2024-2026 AO Kaspersky Lab |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
| 17 | +ARG KNP_IMAGE_VERSION=2.0.0 |
| 18 | +ARG TARGETPLATFORM |
| 19 | +FROM gcc:14.2.0 |
| 20 | + |
| 21 | +ENV DEBIAN_FRONTEND=noninteractive |
| 22 | + |
| 23 | +WORKDIR /azp |
| 24 | + |
| 25 | +RUN \ |
| 26 | + echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes \ |
| 27 | + && export DEBIAN_VERSION=debian$(cat /etc/debian_version | sed 's/\..*//') \ |
| 28 | + && apt-get update \ |
| 29 | + && apt-get -y --no-install-recommends --show-progress install \ |
| 30 | + apt-transport-https \ |
| 31 | + build-essential \ |
| 32 | + ca-certificates \ |
| 33 | + cmake \ |
| 34 | + curl \ |
| 35 | + gdbserver \ |
| 36 | + git \ |
| 37 | + gnupg-agent \ |
| 38 | + jq \ |
| 39 | + libcurl4 \ |
| 40 | + libunwind8 \ |
| 41 | + netcat-openbsd \ |
| 42 | + net-tools \ |
| 43 | + libopencv-dev \ |
| 44 | + p7zip-full \ |
| 45 | + python3 \ |
| 46 | + python3-opencv \ |
| 47 | + python3-pip \ |
| 48 | + python3-requests \ |
| 49 | + python3-types-requests \ |
| 50 | + software-properties-common \ |
| 51 | + ssh \ |
| 52 | + strace \ |
| 53 | + tar \ |
| 54 | + valgrind \ |
| 55 | + wget \ |
| 56 | + zip \ |
| 57 | + $(apt list|awk '/boost.*1.81.*-dev/ {print($1);}') \ |
| 58 | + && apt-get clean \ |
| 59 | + && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \ |
| 60 | + gpg --dearmor | tee /etc/apt/keyrings/docker.gpg > /dev/null \ |
| 61 | + && add-apt-repository \ |
| 62 | + "deb [arch=$(echo ${TARGETPLATFORM}|cut -f2 -d/)] https://download.docker.com/linux/ubuntu \ |
| 63 | + mantic \ |
| 64 | + stable" \ |
| 65 | + && export VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r) \ |
| 66 | + && export DESTINATION=/usr/local/bin/docker-compose \ |
| 67 | + && curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-`uname -s`-`uname -m` -o "${DESTINATION}" \ |
| 68 | + && chmod +x ${DESTINATION} \ |
| 69 | + && ln -sf ${DESTINATION} /usr/bin/docker-compose |
| 70 | + |
| 71 | +RUN rm -rf /tmp/* |
| 72 | + |
| 73 | +COPY LICENSE.txt . |
| 74 | +COPY NOTICE.txt . |
| 75 | + |
| 76 | +COPY start.sh /start.sh |
| 77 | +RUN chmod +x /start.sh |
| 78 | + |
| 79 | +ENTRYPOINT ["/start.sh"] |
0 commit comments