-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
61 lines (61 loc) · 2.48 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
57
58
59
60
61
# Docker file to build and test AIscm on different versions of Debian
#
# configure /etc/default/docker
# DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 --ip-masq=true"
FROM debian:sid
MAINTAINER Jan Wedekind <[email protected]>
RUN echo "deb http://httpredir.debian.org/debian unstable main" > /etc/apt/sources.list
RUN apt-get update # Forced update Do 2. Dez 14:48:32 GMT 2021
RUN apt-get -q -y dist-upgrade
RUN apt-get install -q -y apt-utils
RUN apt-get install -q -y build-essential
RUN apt-get install -q -y autoconf automake libtool
RUN apt-get install -q -y devscripts equivs
RUN apt-get install -q -y linux-libc-dev
RUN apt-get install -q -y guile-3.0-dev
RUN apt-get install -q -y libx11-dev libxext-dev libxv-dev libxmu-dev libxi-dev libglu1-mesa-dev libgl1-mesa-dev
RUN apt-get install -q -y gettext
RUN apt-get install -q -y pandoc
RUN apt-get install -q -y libjpeg-dev libmjpegtools-dev
RUN apt-get install -q -y libpulse-dev
RUN apt-get install -q -y imagemagick libmagickcore-dev
RUN apt-get install -q -y libswresample-dev
RUN apt-get install -q -y libswscale-dev
RUN apt-get install -q -y libavutil-dev
RUN apt-get install -q -y libavcodec-dev
RUN apt-get install -q -y libavformat-dev
RUN apt-get install -q -y libxpm-dev
RUN apt-get install -q -y llvm-13
RUN apt-get install -q -y llvm-13-dev
RUN apt-get install -q -y clang-13
RUN apt-get install -q -y libomp5-13
RUN apt-get install -q -y libomp-13-dev
RUN apt-get install -q -y clearsilver-dev
RUN apt-get install -q -y cmake
RUN apt-get install -q -y wget
RUN mkdir -p /usr/src/aiscm
WORKDIR /usr/src
RUN wget -q https://github.com/protocolbuffers/protobuf/releases/download/v3.10.0/protobuf-all-3.10.0.tar.gz
RUN wget -q https://github.com/protobuf-c/protobuf-c/releases/download/v1.3.2/protobuf-c-1.3.2.tar.gz
RUN wget -q https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz
RUN tar xzf protobuf-all-3.10.0.tar.gz
RUN tar xzf protobuf-c-1.3.2.tar.gz
RUN tar xz -C /usr -f libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz
WORKDIR /usr/src/protobuf-3.10.0
RUN ./configure --prefix=/usr
RUN make -j `nproc`
RUN make install
WORKDIR /usr/src/protobuf-c-1.3.2
RUN ./configure --prefix=/usr
RUN make -j `nproc`
RUN make install
WORKDIR /usr/src/aiscm
ADD debian/control debian/control
RUN mk-build-deps --install --remove --tool 'apt-get -q --yes' debian/control
COPY aiscm.tar.xz .
COPY aiscm.tar.xz.asc .
ADD configure.ac .
ADD debian debian
ADD Makefile.package .
RUN make -f Makefile.package
RUN dpkg --install pkg/aiscm_*.deb