-
-
Notifications
You must be signed in to change notification settings - Fork 292
/
Dockerfile
87 lines (74 loc) · 1.67 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
FROM ubuntu:20.04
# Base stuff
RUN \
apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:openjdk-r/ppa && \
apt-get update && \
apt-get install -y openjdk-11-jdk
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
gcc \
g++ \
libssl-dev \
openssl \
libtool \
autoconf \
automake \
build-essential \
uuid-dev \
libxi-dev \
libopenal-dev \
libgl1-mesa-dev \
libglw1-mesa-dev \
freeglut3-dev \
gcc-multilib \
g++-multilib \
# for python+ctypes
libffi-dev
RUN \
apt-get install -y --no-install-recommends \
tofrodos \
cmake \
wget \
curl \
zip \
unzip \
tree \
silversearcher-ag \
git
#
# llvm
#
ENV CLANG_VERSION=17
RUN \
echo "LLVM + CLANG ${CLANG_VERSION}" && \
wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh ${CLANG_VERSION} && \
rm llvm.sh
ENV PATH=/usr/lib/llvm-${CLANG_VERSION}/bin:$PATH
ENV LD_LIBRARY_PATH=/usr/lib/llvm-${CLANG_VERSION}/lib:$LD_LIBRARY_PATH
ENV PYENV_ROOT /.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
ENV PYTHON3_VERSION 3.10.4
RUN \
echo "PYENV" && \
set -ex \
&& curl https://pyenv.run | bash \
&& pyenv update \
&& pyenv install $PYTHON3_VERSION \
&& pyenv global $PYTHON3_VERSION \
&& pyenv rehash
RUN apt-get autoremove
ENV LC_ALL C.UTF-8
# Add builder user
RUN useradd -r -u 2222 builder && \
mkdir -p /var/builder && \
chown builder: /var/builder && \
chown builder: $(readlink -f /usr/bin/java) && \
chmod +s $(readlink -f /usr/bin/java)
USER builder
WORKDIR /home/builder
RUN mkdir -p /home/builder