forked from IFRCGo/cbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (43 loc) · 1.35 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
FROM microsoft/dotnet:2-sdk-jessie
# Install Mono
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install --yes \
curl \
gnupg \
&& apt-key adv \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb http://download.mono-project.com/repo/debian jessie main" \
| tee /etc/apt/sources.list.d/mono-official.list
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install --yes \
mono-devel
# Install PowerShell
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install --yes --no-install-recommends \
apt-utils \
ca-certificates \
curl \
apt-transport-https \
locales
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/8/prod.list | tee /etc/apt/sources.list.d/microsoft.list
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install --yes --no-install-recommends \
powershell
# Install Node
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install --yes --no-install-recommends \
nodejs
# Clean
RUN DEBIAN_FRONTEND=noninteractive \
apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& rm -rf /var/tmp/*