-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaspnet.Dockerfile
More file actions
29 lines (22 loc) · 895 Bytes
/
aspnet.Dockerfile
File metadata and controls
29 lines (22 loc) · 895 Bytes
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
FROM mcr.microsoft.com/dotnet/aspnet:7.0
# Install curl
RUN cd tmp \
&& apt update\
&& apt install -y --no-install-recommends curl
# Install Microsoft Package Repository
RUN cd tmp \
&& curl -LOJ https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& apt update
RUN apt install -y powershell
# libplus for System Drawing
# net-tools for netstat command
# inetutils-ping for ping command
# inetutils-telnet for ping telnet
RUN apt install -y --no-install-recommends libgdiplus libc6-dev net-tools inetutils-ping inetutils-telnet gss-ntlmssp \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll
# Enable OpenSSL Legacy Providers by Config
COPY openssl.cnf /etc/ssl/openssl.cnf
RUN pwsh -Command Install-Module -Name PSWSMan -Force
RUN pwsh -Command Install-WSMan