2022-04-25 02:47:59 +03:00
|
|
|
FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
2021-03-31 21:00:34 +03:00
|
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
|
|
|
|
|
|
ENV chocolateyUseWindowsCompression false
|
2022-04-25 02:47:59 +03:00
|
|
|
# Opt out of the telemetry feature
|
|
|
|
ENV DOTNET_CLI_TELEMETRY_OPTOUT=true
|
|
|
|
# Disable first time experience
|
|
|
|
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
|
|
|
|
# Configure Kestrel web server to bind to port 80 when present
|
|
|
|
ENV ASPNETCORE_URLS=\
|
|
|
|
# Enable detection of running in a container
|
|
|
|
ENV DOTNET_RUNNING_IN_CONTAINER=true
|
|
|
|
# Enable correct mode for dotnet watch (only mode supported in a container)
|
|
|
|
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
|
|
|
|
# Skip extraction of XML docs - generally not useful within an image/container - helps perfomance
|
|
|
|
ENV NUGET_XMLDOC_MODE=skip
|
|
|
|
# PowerShell telemetry for docker image usage
|
|
|
|
ENV POWERSHELL_DISTRIBUTION_CHANNEL=docker-windows
|
2021-03-31 21:00:34 +03:00
|
|
|
|
2021-04-01 00:51:20 +03:00
|
|
|
####################################################################################################################################
|
|
|
|
# https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile
|
|
|
|
####################################################################################################################################
|
|
|
|
|
2021-04-01 18:26:19 +03:00
|
|
|
##################################################################
|
|
|
|
# Creating workdir for future
|
|
|
|
##################################################################
|
|
|
|
RUN mkdir C:\\EpicMorg
|
|
|
|
WORKDIR C:\\EpicMorg
|
|
|
|
|
2022-04-25 02:47:59 +03:00
|
|
|
##################################################################
|
|
|
|
# Installing IIS
|
|
|
|
##################################################################
|
|
|
|
RUN powershell -Command Add-WindowsFeature Web-Server; \
|
|
|
|
Invoke-WebRequest -UseBasicParsing -Uri "https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.10/ServiceMonitor.exe" -OutFile "C:\ServiceMonitor.exe"
|
|
|
|
|
2021-03-31 21:00:34 +03:00
|
|
|
##################################################################
|
|
|
|
# Installing ocolatey.org
|
|
|
|
##################################################################
|
|
|
|
RUN powershell -Command \
|
|
|
|
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; \
|
|
|
|
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
|
|
|
|
|
|
|
##################################################################
|
2021-04-01 00:51:20 +03:00
|
|
|
# install vcredist packages
|
2021-03-31 21:00:34 +03:00
|
|
|
##################################################################
|
2021-04-01 15:29:06 +03:00
|
|
|
RUN cinst --no-progress -y -IgnoreChecksums --ignoredetectedreboot \
|
2021-03-31 21:00:34 +03:00
|
|
|
vcredist-all \
|
|
|
|
vcredist140 \
|
|
|
|
vcredist2005 \
|
|
|
|
vcredist2008 \
|
|
|
|
vcredist2010 \
|
|
|
|
vcredist2012 \
|
|
|
|
vcredist2013 \
|
|
|
|
vcredist2013 \
|
2021-04-01 00:51:20 +03:00
|
|
|
vcredist2015
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# install dotnet packages
|
|
|
|
##################################################################
|
2021-04-01 15:29:06 +03:00
|
|
|
RUN cinst --no-progress -y -IgnoreChecksums --ignoredetectedreboot \
|
|
|
|
dotnet \
|
2022-04-25 02:47:59 +03:00
|
|
|
dotnet-aspnetruntime \
|
|
|
|
dotnet-windowshosting \
|
2021-04-01 00:51:20 +03:00
|
|
|
dotnet-runtime \
|
|
|
|
dotnet-sdk \
|
|
|
|
powershell-core
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# install base packages
|
|
|
|
##################################################################
|
2021-04-01 15:29:06 +03:00
|
|
|
RUN cinst --no-progress -y -IgnoreChecksums --ignoredetectedreboot \
|
2021-04-01 00:51:20 +03:00
|
|
|
curl \
|
|
|
|
far \
|
|
|
|
findutils \
|
|
|
|
git \
|
|
|
|
make \
|
|
|
|
mc \
|
|
|
|
nano \
|
|
|
|
openssl \
|
|
|
|
sed \
|
|
|
|
steamcmd \
|
|
|
|
sudo \
|
|
|
|
tartool \
|
2021-03-31 21:00:34 +03:00
|
|
|
unrar \
|
|
|
|
unzip \
|
|
|
|
wget
|
2021-04-01 00:51:20 +03:00
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# install archive packages
|
|
|
|
##################################################################
|
2021-04-01 15:29:06 +03:00
|
|
|
RUN cinst --no-progress -y -IgnoreChecksums --ignoredetectedreboot \
|
2021-04-01 00:51:20 +03:00
|
|
|
7zip \
|
|
|
|
7zip-zstd \
|
|
|
|
7zip.commandline \
|
|
|
|
7zip.portable \
|
|
|
|
asar7z \
|
|
|
|
exfat7z \
|
|
|
|
grit7z \
|
|
|
|
iso7z \
|
|
|
|
modern7z \
|
|
|
|
thumbs7z \
|
|
|
|
wavpack7z \
|
|
|
|
winrar
|
2022-04-25 02:47:59 +03:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]
|