-
Notifications
You must be signed in to change notification settings - Fork 103
/
Dockerfile
60 lines (58 loc) · 1.88 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
FROM library/fedora:40
RUN dnf upgrade --refresh -y \
&& dnf install --setopt tsflags=nodocs -y \
dnf-plugins-core \
&& dnf config-manager --add-repo=https://packages.microsoft.com/fedora/40/prod/config.repo \
&& dnf install --setopt=install_weak_deps=False --setopt tsflags=nodocs -y \
# Base toolchain we need to build anything (clang, cmake, make and the like)
clang \
cmake \
findutils \
gdb \
glibc-langpack-en \
lldb-devel \
llvm-devel \
make \
pigz \
python \
which \
# Tools used by build automation
azure-cli \
git \
jq \
tar \
procps \
zip \
# Dependencies of CoreCLR, Mono and CoreFX
autoconf \
automake \
brotli-devel \
glibc-locale-source \
iputils \
jq \
krb5-devel \
libcurl-devel \
libgdiplus \
libicu-devel \
libomp-devel \
libtool \
libunwind-devel \
libuuid-devel \
lttng-ust-devel \
openssl-devel \
uuid-devel \
zlib-devel \
# Dependencies for VMR/source-build tests
elfutils \
file \
# Dependencies to support globalization
icu \
&& dnf clean all
# Install the latest non-preview powershell release.
RUN LATEST_TAG=$(curl -L https://api.github.com/repos/powershell/powershell/releases/latest | jq -r '.tag_name') \
&& curl -L https://github.com/PowerShell/PowerShell/releases/download/$LATEST_TAG/powershell-${LATEST_TAG#*v}-linux-x64.tar.gz -o /tmp/powershell.tar.gz \
&& mkdir -p /opt/microsoft/powershell \
&& tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell \
&& chmod +x /opt/microsoft/powershell/pwsh \
&& ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \
&& rm -f /tmp/powershell.tar.gz