forked from Epitech/epitest-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
140 lines (132 loc) · 5.94 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
FROM fedora:36
LABEL maintainer="Thomas Dufour <[email protected]>"
RUN dnf -y upgrade \
&& dnf -y install dnf-plugins-core \
&& dnf -y --refresh install \
--setopt=tsflags=nodocs \
--setopt=deltarpm=false \
SDL2 \
SDL2-devel.x86_64 \
SDL2-static.x86_64 \
SDL2_image.x86_64 \
SDL2_image-devel.x86_64 \
SDL2_ttf \
SDL2_ttf-devel.x86_64 \
SDL2_mixer \
SDL2_mixer-devel.x86_64 \
SDL2_gfx \
SDL2_gfx-devel.x86_64 \
libcaca.x86_64 \
libcaca-devel.x86_64 \
SFML.x86_64 \
SFML-devel.x86_64 \
CSFML.x86_64 \
CSFML-devel.x86_64 \
autoconf \
automake \
boost \
boost-devel.x86_64 \
boost-graph \
boost-math \
boost-static.x86_64 \
ca-certificates.noarch \
clang.x86_64 \
clang-analyzer \
cmake.x86_64 \
curl.x86_64 \
elfutils-libelf-devel.x86_64 \
gcc-c++.x86_64 \
gcc.x86_64 \
gdb.x86_64 \
git \
glibc-devel.x86_64 \
glibc-locale-source.x86_64 \
glibc.x86_64 \
gmp-devel.x86_64 \
ksh.x86_64 \
langpacks-en \
libX11-devel.x86_64 \
libXext-devel.x86_64 \
libXrandr-devel.x86_64 \
libXinerama-devel.x86_64 \
libXcursor-devel.x86_64 \
libXi-devel.x86_64 \
libjpeg-turbo-devel.x86_64 \
libtsan \
llvm.x86_64 \
llvm-devel.x86_64 \
ltrace.x86_64 \
make.x86_64 \
nasm.x86_64 \
ncurses-devel.x86_64 \
ncurses-libs \
ncurses.x86_64 \
net-tools.x86_64 \
nc \
openal-soft-devel.x86_64 \
openssl-devel \
patch \
procps-ng.x86_64 \
python3.x86_64 \
python3-devel.x86_64 \
rlwrap.x86_64 \
ruby.x86_64 \
strace.x86_64 \
sudo.x86_64 \
systemd-devel \
tar.x86_64 \
tcsh.x86_64 \
tmux.x86_64 \
tree.x86_64 \
unzip.x86_64 \
diffutils \
valgrind.x86_64 \
wget.x86_64 \
which.x86_64 \
xcb-util-image-devel.x86_64 \
xcb-util-image.x86_64 \
xz.x86_64 \
zip.x86_64 \
zsh.x86_64 \
vim \
&& dnf clean all -y
# Large layer was splitted because build timeout on push to github package
RUN dnf -y --refresh install \
ghc \
nodejs \
php.x86_64 \
php-devel.x86_64 \
php-bcmath.x86_64 \
php-cli.x86_64 \
php-devel.x86_64 \
php-gd.x86_64 \
php-mbstring.x86_64 \
php-mysqlnd.x86_64 \
php-pdo.x86_64 \
php-pear.noarch \
php-pdo.x86_64 \
php-xml.x86_64 \
php-gettext-gettext.noarch \
php-phar-io-version.noarch \
php-theseer-tokenizer.noarch \
libuuid libuuid-devel \
java-17-openjdk \
java-17-openjdk-devel \
bc \
&& dnf clean all -y
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install -Iv gcovr==5.2 pycryptodome==3.15.0 requests==2.28.1 pyte==0.8.1 numpy==1.23.2 \
&& localedef -i en_US -f UTF-8 en_US.UTF-8
RUN cd /tmp \
&& curl -sSL "https://github.com/Snaipe/Criterion/releases/download/v2.4.1/criterion-2.4.1-linux-x86_64.tar.xz" -o /tmp/criterion-2.4.1.tar.xz \
&& tar xf criterion-2.4.1.tar.xz \
&& cp -r /tmp/criterion-2.4.1/* /usr/local/ \
&& echo "/usr/local/lib" > /etc/ld.so.conf.d/usr-local.conf \
&& ldconfig
RUN cd /tmp \
&& curl -sSL https://get.haskellstack.org/ | sh
ENV LANG=en_US.utf8 LANGUAGE=en_US:en LC_ALL=en_US.utf8 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
RUN cd /tmp \
&& rm -rf /tmp/* \
&& chmod 1777 /tmp
WORKDIR /usr/app