-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
71 lines (66 loc) · 2.39 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
FROM ubuntu:20.04 as common
ARG DEBIAN_FRONTEND=noninteractive
ARG GITHUB_CLI_VERSION=2.42.0
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
apt-utils \
software-properties-common \
apt-transport-https \
unzip \
gnupg2 \
# .NET dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu66 \
libssl1.1 \
libstdc++6 \
zlib1g \
liblttng-ust-ctl4 \
rsync \
openssh-client \
sudo \
python3 \
cmake \
xz-utils \
lbzip2 \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
&& add-apt-repository "deb [arch=amd64] http://dl.google.com/linux/chrome/deb stable main" \
&& apt-get update \
&& apt-get install -y --no-install-recommends docker-ce-cli docker-buildx-plugin $(apt-cache depends google-chrome-stable | grep Depends | sed -e "s/.*ends:\ //" -e 's/<[^>]*>//') libxss1 libxtst6 libx11-xcb1 \
# .NET
&& curl -L https://dot.net/v1/dotnet-install.sh -o /dotnet-install.sh \
&& chmod +x /dotnet-install.sh \
&& /dotnet-install.sh --channel 6.0 \
&& /dotnet-install.sh --channel 7.0 \
&& /dotnet-install.sh --channel 8.0 \
&& PATH="$PATH:/root/.dotnet" \
# GitHub Cli
&& curl -L https://github.com/cli/cli/releases/download/v${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_amd64.deb -o /tmp/gh_${GITHUB_CLI_VERSION}_linux_amd64.deb \
&& dpkg -i /tmp/gh_${GITHUB_CLI_VERSION}_linux_amd64.deb \
# Helm
&& curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 \
&& chmod 700 get_helm.sh \
&& ./get_helm.sh \
# Kubectl
&& curl -LO https://dl.k8s.io/release/v1.29.0/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl \
&& sudo mv ./kubectl /usr/local/bin/kubectl \
# Cleanup
&& rm -rf /var/lib/apt/lists/*
COPY global.json /global.json
ENV PATH "$PATH:/root/.dotnet"
FROM common as wasm
# Emscripten
RUN mkdir /ems \
&& cd /ems \
&& git clone https://github.com/emscripten-core/emsdk.git \
&& cd /ems/emsdk \
&& ./emsdk install latest \
&& ./emsdk activate latest \
&& dotnet workload install wasm-tools \