forked from boletales/which-lang-to-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (64 loc) · 1.8 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
FROM debian:stable-slim AS builder
ENV DEBIAN_FRONTEND=noninteractive
ENV BOOTSTRAP_HASKELL_NONINTERACTIVE=1
ENV BOOTSTRAP_HASKELL_GHC_VERSION=8.10.7
ENV BOOTSTRAP_HASKELL_INSTALL_STACK=1
RUN apt-get update && apt-get install -y curl\
&& curl -O https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb\
&& dpkg -i packages-microsoft-prod.deb\
&& rm packages-microsoft-prod.deb\
&& apt-get update\
&& apt-get install -y --no-install-recommends\
git\
build-essential\
clang\
lldb\
lld\
gfortran\
dotnet-sdk-6.0\
default-jre\
default-jdk\
ocaml\
scala\
libgmp-dev\
&& apt-get clean\
&& curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ashwanthkumar/install-golang/master/install.sh | sh -s \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
COPY ./ /root/src
WORKDIR /root/src
RUN cp /root/src/.bashrc /root/.bashrc\
&& cp /root/.bashrc /root/.bashprofile\
&& chsh -s /bin/bash
ENV LANG C.UTF-8
RUN git init\
&& git clean -Xdf\
&& . /root/.ghcup/env\
&& . /root/.cargo/env\
&& ghc bench.hs\
&& ./bench --no-md\
&& rm .gitignore\
&& mv .gitignore_bin .gitignore\
&& git add -A\
&& git clean -Xdf\
&& rm -rf .git
FROM debian:stable-slim AS bench
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update\
&& apt-get install -y --no-install-recommends\
git\
python3\
php\
ruby\
perl\
nodejs\
r-base\
default-jre\
lua5.3\
scala\
&& apt-get clean
COPY --from=builder /root/src /root/src
WORKDIR /root/src
RUN chsh -s /bin/bash
ENV LANG C.UTF-8
CMD ["./bench", "--no-md", "--no-build"]