-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (43 loc) · 1.56 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (43 loc) · 1.56 KB
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
FROM python:3.9-slim
WORKDIR /workspace
ENV PYTHONUNBUFFERED=1
ENV PATH="/root/.cargo/bin:/root/.local/bin:/root/.sdkman/candidates/kotlin/current/bin:${PATH}"
ENV DEBIAN_FRONTEND=noninteractive
RUN cd /etc/apt/sources.list.d \
&& cp debian.sources debian.sources.bak \
&& sed -i 's@deb.debian.org@repo.huaweicloud.com@g' debian.sources \
&& sed -i 's@security.debian.org@repo.huaweicloud.com@g' debian.sources
RUN apt-get update && apt-get install -y \
git \
vim \
curl \
wget \
build-essential \
default-jdk \
nodejs \
npm \
gcc \
g++ \
mono-mcs \
zip \
unzip \
swi-prolog \
lua5.4 \
&& rm -rf /var/lib/apt/lists/*
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& . "$HOME/.cargo/env"
RUN apt-get update && apt-get install -y golang && rm -rf /var/lib/apt/lists/*
RUN npm install -g typescript
RUN npm install -g coffeescript
RUN curl -s "https://get.sdkman.io" | bash \
&& bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install kotlin"
RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
RUN curl -fsSL https://install.julialang.org | sh -s -- -y
COPY requirements.txt* ./
RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi \
&& pip install --no-cache-dir guesslang
RUN pip uninstall typing_extensions -y
RUN pip install --no-cache-dir typing_extensions
RUN echo 'source "$HOME/.cargo/env"' >> ~/.bashrc \
&& echo 'source "$HOME/.sdkman/bin/sdkman-init.sh"' >> ~/.bashrc
CMD ["/bin/bash"]