-
Notifications
You must be signed in to change notification settings - Fork 108
/
Dockerfile
253 lines (203 loc) · 6.51 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
FROM amd64/ubuntu:20.04
USER root
RUN mkdir -p /root/app
WORKDIR /root/app
# prerequisite packages
RUN apt-get update -qq && \
apt-get upgrade -qq -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y \
automake \
autoconf \
binutils \
bison \
bubblewrap \
build-essential \
curl \
file \
git \
gnupg2 \
libc6-dev \
libcurl4 \
libedit2 \
libgcc-9-dev \
libpython2.7 \
libstdc++-9-dev \
libxml2 \
libz3-dev \
libgd-dev \
libpcre2-dev \
libpcre3-dev \
libonig-dev \
libsqlite3-0 \
libsqlite3-dev \
libpq-dev \
libedit-dev \
libreadline-dev \
libgdbm-dev \
libcurl4-openssl-dev \
libncurses5-dev \
libunistring-dev \
libgc-dev \
libpng-dev \
libssl-dev \
libyaml-dev \
libxslt-dev \
libffi-dev \
libgmp3-dev \
libtool \
libncurses-dev \
libssh-dev \
libzip-dev \
libbz2-dev \
libevent-dev \
libicu-dev \
liblzma-dev \
libglu1-mesa-dev \
unixodbc-dev \
locales \
pkg-config \
apt-transport-https \
ca-certificates \
gnupg2 \
software-properties-common \
vim \
jq \
re2c \
time \
tzdata \
wget \
xorg-dev \
zlib1g-dev \
unzip && \
apt-get clean -qq -y && \
apt-get autoclean -qq -y && \
apt-get autoremove -qq -y
# locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# apt languages
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qq -y \
cython \
fp-compiler \
gcc-10 \
gfortran \
gnat \
guile-3.0 \
luajit \
open-cobol \
rakudo \
tcl
# Cython requires python.c
RUN ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/python-2.7.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python.pc
# Mono
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list
RUN apt update
RUN apt-get install -qq -y mono-devel
#Powershell
RUN wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN apt-get update
RUN apt-get install -y powershell
RUN rm packages-microsoft-prod.deb
# QB64
RUN wget -q https://github.com/QB64Team/qb64/releases/download/v1.5/qb64_1.5_lnx.tar.gz
RUN tar xzf qb64_1.5_lnx.tar.gz
RUN mv qb64 /usr/share/qb64
RUN rm qb64_1.5_lnx.tar.gz
# Pony
RUN SHELL=/bin/sh sh -c "$(curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh)"
RUN /root/.local/share/ponyup/bin/ponyup update ponyc release
ENV CC="/usr/bin/gcc"
# V
RUN wget https://github.com/vlang/v/releases/download/0.2.4/v_linux.zip
RUN unzip v_linux.zip
RUN mv v /usr/share/v
RUN rm v_linux.zip
# D
RUN curl -fsS https://dlang.org/install.sh | bash -s ldc
RUN mv /root/dlang /usr/share/dlang
# Janet
RUN wget -q https://github.com/janet-lang/janet/releases/download/v1.12.2/janet-v1.12.2-linux.tar.gz
RUN tar xzf janet-v1.12.2-linux.tar.gz
RUN mv janet-v1.12.2-linux /usr/share/janet
RUN rm janet-v1.12.2-linux.tar.gz
# asdf languages
RUN git clone https://github.com/asdf-vm/asdf.git /root/.asdf --branch v0.8.0
RUN chmod 755 /root/.asdf/asdf.sh
RUN echo "/root/.asdf/asdf.sh" >> /etc/bash.bashrc
# Add asdf and above languages to PATH
ENV PATH="${PATH}:/root/.asdf/shims:/root/.asdf/bin:/usr/share/janet:/usr/share/qb64:/usr/share/dlang/ldc-1.28.1/bin:/root/.local/share/ponyup/bin:/usr/share/v"
COPY .tool-versions /root/app/.
RUN asdf plugin-add java https://github.com/halcyon/asdf-java.git
RUN asdf install java
RUN asdf plugin-add clojure
RUN asdf install clojure
RUN asdf plugin-add crystal
RUN asdf install crystal
RUN asdf plugin-add dart
RUN asdf install dart
#RUN asdf plugin-add dmd https://github.com/sylph01/asdf-dmd.git
#RUN asdf install dmd
RUN asdf plugin-add dotnet-core
RUN asdf install dotnet-core
RUN asdf plugin-add elm
RUN asdf install elm
RUN asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
RUN asdf install elixir
RUN asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
RUN asdf install erlang
RUN asdf plugin-add golang
RUN asdf install golang
#RUN asdf plugin-add guile https://github.com/indiebrain/asdf-guile.git
#RUN asdf install guile
RUN asdf plugin-add haskell
RUN asdf install haskell
#RUN asdf plugin-add janet https://github.com/Jakski/asdf-janet.git
#RUN asdf install janet
RUN asdf plugin-add julia https://github.com/rkyleg/asdf-julia.git
RUN asdf install julia
RUN asdf plugin-add kotlin https://github.com/missingcharacter/asdf-kotlin.git
RUN asdf install kotlin
#RUN asdf plugin-add groovy https://github.com/weibemoura/asdf-groovy.git
#RUN asdf install groovy
RUN asdf plugin-add lua https://github.com/Stratus3D/asdf-lua.git
RUN asdf install lua
#RUN asdf plugin-add luaJIT
#RUN asdf install luaJIT
RUN asdf plugin-add nim
RUN asdf install nim
RUN asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
RUN asdf install nodejs
RUN asdf plugin-add ocaml
RUN asdf install ocaml
RUN asdf plugin add perl https://github.com/ouest/asdf-perl.git
RUN asdf install perl
RUN asdf plugin-add php
RUN asdf install php
#RUN asdf plugin-add pony https://github.com/enilsen16/asdf-pony.git
#RUN asdf install pony
RUN asdf plugin-add python
RUN asdf install python
RUN asdf plugin-add pypy https://github.com/drujensen/asdf-pypy.git
RUN asdf install pypy
RUN asdf plugin-add R
RUN asdf install R
RUN asdf plugin-add ruby
RUN asdf install ruby
RUN asdf plugin-add rust
RUN asdf install rust
RUN asdf plugin-add sbcl
RUN asdf install sbcl
RUN asdf plugin-add scala
RUN asdf install scala
RUN asdf plugin-add swift https://github.com/drujensen/asdf-swift.git
RUN asdf install swift
#RUN asdf plugin-add tcl
#RUN asdf install tcl
#RUN asdf plugin-add v
#RUN asdf install v
COPY . /root/app
CMD ["/bin/bash", "-c", "./run.sh"]